Timer:IsPastSimMS
From Data Realms Wiki
(Difference between revisions)
Beautifybot (Talk | contribs) m (updating function page) |
m (Reverted edits by Beautifybot (talk) to last revision by DrLuke) |
||
Line 1: | Line 1: | ||
{{LuaFunction | {{LuaFunction | ||
- | |function_name | + | |function_name = Timer:IsPastSimMS |
- | |arguments | + | |arguments = [[number]] Time in milliseconds |
- | |returns | + | |returns = [[nil]] |
- | |description | + | |description = This function will check, whether a certain time has passed after the timer has been created. |
- | + | |codedesc = This will gib the object this script is attached to after 5 seconds have passed. | |
- | |codedesc | + | |code = <code lua n> |
- | |code | + | |
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 16: | Line 15: | ||
end | end | ||
end</code> | end</code> | ||
- | |output | + | |output = nil |
- | }} | + | |}} |
Revision as of 00:23, 28 June 2012
Function | |
---|---|
Syntax | Timer:IsPastSimMS( number Time in milliseconds ) |
Description: | |
This function will check, whether a certain time has passed after the timer has been created. | |
Returns | nil |
Example | |
---|---|
Description | This will gib the object this script is attached to after 5 seconds have passed. |
Code |
|
Output | nil |