Jump to content

[LE] Easiest way to have sound activate upon striking Tree?


Recommended Posts

Hello, I'm new to modding Skyrim and am looking to do a seemingly simple thing for VR. There's lots of mods that allow for collecting wood by striking trees, however Skyrim VR has issues with world weapon collision sound effects so it's disabled by default. I'm looking to make a mod that triggers a sound file when striking a tree in the game with a axe. The collisions themselves are still detected in VR, just not the sound effects. Does anyone have a general outline or idea of how I would go about doing this to start me down the right path? I can reverse engineer a lot of mod scripts easily enough, but it's hard for me to go through and see how they are activated or injected into the game.

 

Thanks for any help provided.

Link to comment
Share on other sites

You probably want to use a script with the OnHit event. Here's a tutorial on how to do dynamic scripting with object references: https://www.creationkit.com/index.php? Scroll down to the Attaching Scripts to Objects section. It explains how to give the player firewood whenever you hit a tree. You can modify it to play a sound whenever you hit a tree.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...