BTTimerNode waits and returns RUNNING until the timer expires, then returns SUCCESS. BTTimerNode never returns FAILURE. More...
Public Member Functions | |
BTTimerNode (string nodeName) | |
Constructor. | |
override ActionResult | Start (Agent agent, float deltaTime) |
ActionResult.Start. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
ActionResult.Execute Causes the action to return running until the timer expires. | |
override ActionResult | Stop (Agent agent, float deltaTime) |
ActionResult.Stop. | |
void | SetWaitTime (string waitTimeExpression) |
Set the wait time using a parseable Expression. | |
Public Attributes | |
const string | NODETYPE = "timer" |
waitTime sets the timer delay | |
Expression | waitTime = null |
An Expression that should evaluate to a float value, indicating the wait time for this timer. |
BTTimerNode waits and returns RUNNING until the timer expires, then returns SUCCESS. BTTimerNode never returns FAILURE.
RAIN.BehaviorTrees.BTTimerNode.BTTimerNode | ( | string | nodeName | ) |
Constructor.
nodeName | The name of the node to create |
override ActionResult RAIN.BehaviorTrees.BTTimerNode.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Execute Causes the action to return running until the timer expires.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
void RAIN.BehaviorTrees.BTTimerNode.SetWaitTime | ( | string | waitTimeExpression | ) |
Set the wait time using a parseable Expression.
waitTimeExpression | The expression to parse - should evaluate to a float value |
override ActionResult RAIN.BehaviorTrees.BTTimerNode.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Start.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.BehaviorTrees.BTTimerNode.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Stop.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
const string RAIN.BehaviorTrees.BTTimerNode.NODETYPE = "timer" |
waitTime sets the timer delay
An Expression that should evaluate to a float value, indicating the wait time for this timer.