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. | |
Public Attributes | |
const string | NODETYPE = "timer" |
waitTime sets the timer delay | |
float | waitTime |
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.
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