Timer:AlternateReal
From Data Realms Wiki
(Difference between revisions)
Revision as of 00:46, 28 June 2012
Function | |
---|---|
Syntax | AlternateReal( * An int with the alternating period in ms. The time specified here is how long it will take for the switch to alternate. ) |
Description: | |
Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it. This is useful for blink animations etc. | |
Returns | Whether the elapsed time is in the first state or not. |
Example | |
---|---|
Description | This will gib the object this script is attached to after 5 seconds have passed. |
Code |
|
Output | nil |