API ReferenceGE Extensionsflowgraphnodesgameplaytimers
Simple Timer
**File:** `flowgraph/nodes/gameplay/timers/simpleTimer.lua`
File: flowgraph/nodes/gameplay/timers/simpleTimer.lua
Description: Creates a new Timer object inside an all-in-one node. Timer values can not be changed after creation in this node.
Category: once_f_duration
Input Pins
| Name | Type | Description |
|---|---|---|
duration | number | How long the timer should run before considered complete. |
ref | string | Reference frame for the timer. |
capTime | bool | If true, elapsed, remaining and elapsedPercent will be capped if the timer is complete. |
Output Pins
| Name | Type | Description |
|---|---|---|
timerId | number | ID of the timer. |
elapsed | number | Amount of time elapsed on the timer. |
remaining | number | Amount of time still remaining on the timer. |
duration | number | How long the timer is running before considered complete. |
elapsedPercent | number | How complete the timer is in percent. Returns value is betwen 0 and 1. |
Methods
C:_executionStarted()C:postInit()C:onNodeReset()C:workOnce()C:work()
See Also
- Create Timer - Related reference
- Get Timer - Related reference
- Set Timer Property - Related reference
- FlowGraph Guide - Guide