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

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_behaviortreetimer [2025/03/12 15:48] – created dragonlorddragengine:modules:dragonscript:behavior_behaviortreetimer [2026/02/11 18:18] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorBehaviorTreeTimer**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorBehaviorTreeTimer**
 </WRAP> </WRAP>
  
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>
Line 102: Line 127:
 ====== Required Behaviors ====== ====== Required Behaviors ======
  
-This behavior requires these other behaviors: 
   * [[behavior_behaviortree|ECBehaviorBehaviorTree]]   * [[behavior_behaviortree|ECBehaviorBehaviorTree]]
  
dragengine/modules/dragonscript/behavior_behaviortreetimer.1741794524.txt.gz · Last modified: 2025/03/12 15:48 by dragonlord