Sir_Skurpsalot Posted March 23, 2020 Share Posted March 23, 2020 I noticed that If you exit a level while a trigger is applied, such as the crouch or prone trigger, and then reload it, the trigger is still applied. What would be the most appropriate place to begin in the scripts to release all triggers upon exiting a mission? Quote Link to comment Share on other sites More sharing options...
fLUnKnhaXYU Posted March 23, 2020 Share Posted March 23, 2020 Brings up an interesting idea . Perhaps set the trigger at the level start where you could set the player already in crouch or prone . If during the exit then Id guess some time after "exit yes / no dialog" would be OK . Quote Link to comment Share on other sites More sharing options...
Sir_Skurpsalot Posted March 23, 2020 Author Share Posted March 23, 2020 I wound up calling a function from disconnectedCleanup() in scripts/client/serverConnection.cs that does the trick. Quote Link to comment Share on other sites More sharing options...
Duion Posted March 24, 2020 Share Posted March 24, 2020 I would reset everything on joining a session, but it depends on taste probably. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.