SetTimerValue (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{HarvestMethod | setTimerValue(seconds) | Sets what time the timer should display, in seconds. | {{MethodParam|amount|A number|The number to set the timer to.}} | Returns nothin...')
Line 5: Line 5:
Sets what time the timer should display, in seconds.
Sets what time the timer should display, in seconds.
|
|
-
{{MethodParam|amount|A number|The number to set the timer to.}}
+
{{MethodParam|seconds|Number|The seconds to set the timer to.}}
|
|
Returns nothing.
Returns nothing.
Line 11: Line 11:
=== Example ===
=== Example ===
<pre>
<pre>
-
  harvest.setTimerValue(gameTime)
+
harvest.setTimerValue(3600) -- 1hr
 +
harvest.setTimerValue(gameTime)
</pre>
</pre>

Revision as of 22:10, 1 December 2009

setTimerValue(seconds)

Sets what time the timer should display, in seconds.

Parameter Expected Type Description
seconds Number The seconds to set the timer to.
Returns

Returns nothing.

Harvest Library

Example

harvest.setTimerValue(3600) -- 1hr
harvest.setTimerValue(gameTime)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox