Releasing all triggers upon exiting level

There are no stupid questions, just stupid answers.
4 posts Page 1 of 1
Sir_Skurpsalot
Posts: 60
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Mon Mar 23, 2020 5:24 pm
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?
fLUnKnhaXYU
Posts: 176
Joined: Wed Nov 15, 2017 8:19 am
by fLUnKnhaXYU » Mon Mar 23, 2020 7:13 pm
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 .
Sir_Skurpsalot
Posts: 60
Joined: Tue Jan 28, 2020 6:32 pm
by Sir_Skurpsalot » Tue Mar 24, 2020 12:18 am
I wound up calling a function from disconnectedCleanup() in scripts/client/serverConnection.cs that does the trick.
Duion
Posts: 1629
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Mar 24, 2020 10:55 am
I would reset everything on joining a session, but it depends on taste probably.
4 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests