User Tools

Site Tools


dragengine:modules:dragonscript:behavior_toggle

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_toggle [2025/05/02 22:33] dragonlorddragengine:modules:dragonscript:behavior_toggle [2025/05/11 13:32] (current) – [toggle.set] dragonlord
Line 58: Line 58:
 This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace ''toggle'' with ''toggle(id)''. This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace ''toggle'' with ''toggle(id)''.
  
-===== toggle.set =====+===== toggle.update =====
  
-Set one or more toggle trigger parameters.+Update toggle trigger.
  
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
Line 67: Line 67:
 This is an example of using this action: This is an example of using this action:
 <code xml> <code xml>
-<action name='toggle.set'>+<action name='toggle.update'>
   <parameter name='target'>toggle</parameter>   <parameter name='target'>toggle</parameter>
 </action> </action>
Line 80: Line 80:
 |target.fired|''true'', ''false''|Target is in fired or reset state| |target.fired|''true'', ''false''|Target is in fired or reset state|
 |target.everFired|''true'', ''false''|Target has been fired at least once or never| |target.everFired|''true'', ''false''|Target has been fired at least once or never|
 +|wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled|
  
 This is an example of using this action: This is an example of using this action:
dragengine/modules/dragonscript/behavior_toggle.1746225203.txt.gz · Last modified: 2025/05/02 22:33 by dragonlord