This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_touching [2025/05/02 15:29] – [Behavior Tree Conditions] dragonlord | dragengine:modules:dragonscript:behavior_touching [2025/05/02 15:30] (current) – [Behavior Tree Actions] dragonlord | ||
---|---|---|---|
Line 59: | Line 59: | ||
The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree actions if behavior tree is present. See [[behavior_touchsensor# | The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree actions if behavior tree is present. See [[behavior_touchsensor# | ||
- | This is an example of using this action: | + | This is an example of using touch sensor behavior tree actions: |
<code xml> | <code xml> | ||
<action name=' | <action name=' | ||
< | < | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | <!-- actions here run only if player is touching touch sensor --> | ||
+ | </ | ||
</ | </ | ||
Line 70: | Line 79: | ||
The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree conditions if behavior tree is present. See [[behavior_touchsensor# | The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree conditions if behavior tree is present. See [[behavior_touchsensor# | ||
- | This is an example of using this condition: | + | This is an example of using touch sensor behavior tree conditions: |
<code xml> | <code xml> | ||
<action name=' | <action name=' |