Difference between revisions of "GetSecondsPassed"

72 bytes added ,  08:27, 15 June 2006
no edit summary
imported>Talkie Toaster
imported>JOG
Line 2: Line 2:
  GetSecondsPassed  
  GetSecondsPassed  


Returns the number of seconds passed since the last game frame (in float). Extremely useful for running a timer within a script. Much like getbuttonpressed, it only returns a value the first time it is called within a frame, and all subsequent calls return 0.
Returns the number of seconds passed since the last game frame (in float). Extremely useful for running a timer within a script. Each script has its own counter for GetSecondsPassed and when the function is called, this counter is automatically reset to 0. Thus, all subsequent calls within the same frame and script will return 0.




Anonymous user