instagoat 133 Posted March 12, 2017 Hey, I have a question. Being completely inept at scripting, I've not even the faintest how to do this, but what I am basically looking for is a working shot timer. Ie a script/device that upon start, within 5 seconds gives a random start time, and then logs each time it registers the players gun firing. This is how shot timers work in real life, and its quite different from how the timer on bi's time trials works. If anybody has any Idea how to do this so a potato like me can do it, I'd be really happy. thanks in advance for your help, Cheers, Insta Share this post Link to post Share on other sites
serena 151 Posted March 12, 2017 // handle unit fired event unit addEventHandler ["Fired", {/*code inside braces executed each time unit fires*/}]; // command pauses executing script for given period in seconds sleep 10; // command generate random number between 0 and given value random 100; https://community.bistudio.com/wiki/addEventHandler https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#Fired https://community.bistudio.com/wiki/sleep https://community.bistudio.com/wiki/random 1 Share this post Link to post Share on other sites
serena 151 Posted March 12, 2017 Sample mission: link (VR map, all code in init.sqf script, use Start Shot Timer action) 1 Share this post Link to post Share on other sites