Jump to content

[LE] Script Function for Sneaking to Activate Trigger


jucoking

Recommended Posts

Perhaps the following will be helpful:

RegisterForAnimationEvent

OnAnimationEvent

Animation Events

 

Sounds like you are already monitoring if the player enters the trigger while sneaking but want to catch if they go into sneak while already in the trigger. The animation event method may be best. Track sneak state when entering. If sneaking, do your thing as you already are. If not sneaking, register for the sneak animation events. When the sneak animation event is triggered do your thing. You may wish to utilize a bool to stop the sneak event from triggering additional times if the player changes sneak state either on purpose or gets triggered via one of the "accidental" methods outlined on the Animation Events page linked above.

 

I would recommend a script with the following basics on your trigger volume box.

 

  Reveal hidden contents

 

Link to comment
Share on other sites

That did the trick! Thanks so much! Here is the final script:

 

 

  Reveal hidden contents

 

 

You all are the best!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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