Timer:IsPastSimMS
From Data Realms Wiki
(Difference between revisions)
m (Fixing a little mistake in the code) |
Beautifybot (Talk | contribs) m (updating function page) |
||
Line 1: | Line 1: | ||
{{LuaFunction | {{LuaFunction | ||
- | |function_name | + | |function_name =IsPastSimMS |
- | |arguments | + | |arguments =* A unsigned long specifying the threshold amount of time in ms. |
- | |returns | + | |returns =A bool only yielding true if the elapsed time is greater than the passed in value. |
- | |description | + | |description = |
- | |codedesc | + | Returns true if the elapsed time is past a certain amount of time. |
- | |code | + | |codedesc = This will gib the object this script is attached to after 5 seconds have passed. |
+ | |code = <code lua n> | ||
function create(self) | function create(self) | ||
self.LTimer = Timer(); --this is needed for "Timer:IsPastSimMS" to work. | self.LTimer = Timer(); --this is needed for "Timer:IsPastSimMS" to work. | ||
Line 15: | Line 16: | ||
end | end | ||
end</code> | end</code> | ||
- | |output | + | |output = nil |
- | + | }} |
Revision as of 00:11, 28 June 2012
Function | |
---|---|
Syntax | IsPastSimMS( * A unsigned long specifying the threshold amount of time in ms. ) |
Description: | |
Returns true if the elapsed time is past a certain amount of time. | |
Returns | A bool only yielding true if the elapsed time is greater than the passed in value. |
Example | |
---|---|
Description | This will gib the object this script is attached to after 5 seconds have passed. |
Code |
|
Output | nil |