Jump to content
Sign in to follow this  
mattsmith94

Time Trial

Recommended Posts

hi guys, i am going to try to create a script that activates a timer when leaving a trigger and ends when entering a different trigger. Then outputs the time on the screen. The Main bit that I am unsure about is what function I can use to track time

 

Share this post


Link to post
Share on other sites

Start trigger:

 

onActivation:

startTime = time; 
hint "Go!";

Finish trigger:

 

onActivation:

finishTime = time;
timeTotal = finishTime - startTime;
result =  [timeTotal] call BIS_fnc_secondsToString; 
hint format ["Time: %1 seconds",result];

Have fun!

  • Like 1

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  

×