Timer:AlternateSim
From Data Realms Wiki
Revision as of 00:46, 28 June 2012 by Beautifybot (Talk | contribs)
Function | |
---|---|
Syntax | AlternateSim( * 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 |