User Tools

Site Tools


dragengine:modules:dragonscript:behavior_behaviortreetimer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_behaviortreetimer [2025/03/13 17:11] dragonlorddragengine:modules:dragonscript:behavior_behaviortreetimer [2026/02/11 18:18] (current) dragonlord
Line 12: Line 12:
  
 Behavior adds behavior tree actions and conditions to an [[behavior_behaviortree|ECBehaviorBehaviorTree]] allowing behavior trees to start and wait for multiple independent timers. Behavior adds behavior tree actions and conditions to an [[behavior_behaviortree|ECBehaviorBehaviorTree]] allowing behavior trees to start and wait for multiple independent timers.
 +
 +See also:
 +  * [[dragengine:modules:dragonscript:behaviortrees|Behavior Trees]]
  
 ====== Instance Counts ====== ====== Instance Counts ======
Line 68: Line 71:
 <code xml> <code xml>
 <action name='timer.stop' id='waiting'> <action name='timer.stop' id='waiting'>
 +  <parameter name='timer'>myTimer</parameter>
 +</action>
 +</code>
 +
 +===== timer.running =====
 +
 +Determines if timer is running and has not elapsed yet. Optionally as parameter use ''timer'' to select the timer matching an identifier used in a previous action ''timer.start''. The action immediately returns with the result. This can be used as first action in a sequence as entrance guard.
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='timer.running' id='waiting'>
 +  <parameter name='timer'>myTimer</parameter>
 +</action>
 +</code>
 +
 +===== timer.finished =====
 +
 +Determines if a timer has finished. Optionally as parameter use ''timer'' to select the timer matching an identifier used in a previous action ''timer.start''. The action immediately returns with the result. This can be used as first action in a sequence as entrance guard.
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='timer.finished' id='waiting'>
   <parameter name='timer'>myTimer</parameter>   <parameter name='timer'>myTimer</parameter>
 </action> </action>
dragengine/modules/dragonscript/behavior_behaviortreetimer.1741885895.txt.gz · Last modified: 2025/03/13 17:11 by dragonlord