Difference between revisions of "GetSecondsPassed"
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. | 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. | ||