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...')
 
(One intermediate revision not shown)
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>
 +
 +
=== Resources ===
 +
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 16:07, 2 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)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox