Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Get matherial type player currently standing on


rand256
 Share

Recommended Posts

Can't figure out if there's any change to get the name of matherial player currently standing on. For example - a wooden floor, a carpet or maybe snow and ice, and so on. In the game these matherials affect sound of player footsteps, and that could be changed with CreationKit. But is it possible to use information about matherials in custom scripts? Can't find anything on this in CK Wiki.

Any help will be appreciated, thanks!

Link to comment
Share on other sites

As I can guess by exploring CK menus, when you try to change footstep sounds - you actually can define which sound should be played depending on matherial player is standing on AND the footgear player is wearing... I mean it's more than just simple NIF associated sound somewhere deep in the game engine. So in theory it should be possible to extract some info about which NIF (or anything) the player is on. And it would be a shame if there's simply no API present in Papyrus to get that information, though. :\

Seems like the only information about player's position we can easily get in script contains of current cell ID, current worldspace.. and the raw coordinates, I guess. Which is definitely not enough for a script, where something should happen when the player walks onto slippery ice, for example.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...