Jump to content
Sign in to follow this  
Terran4999

Gun fire detected

Recommended Posts

Hey

How do you make a trigger activate when the player has fired his first shot???

Share this post


Link to post
Share on other sites

Init line:

playerHasFired=false; firedEventHandlerIndex = player addEventHandler ["Fired", {playerHasFired=true; player removeEventHandler ["Fired", firedEventHandlerIndex]; firedEventHandlerIndex=nil;}];

On the trigger condition line type playerHasFired

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×