User Tools

Site Tools


dragengine:modules:dragonscript:behavior_touching

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_touching [2025/05/02 15:30] – [Behavior Tree Actions] dragonlorddragengine:modules:dragonscript:behavior_touching [2025/05/02 15:30] (current) – [Behavior Tree Actions] dragonlord
Line 64: Line 64:
   <parameter name='enabled'>true</parameter>   <parameter name='enabled'>true</parameter>
 </action> </action>
 +</code>
 +
 +<code xml>
 +<sequence>
 +  <action name='touching.touchSensor.check'>
 +    <parameter name='player'>true</parameter>
 +  </action>
 +  <!-- actions here run only if player is touching touch sensor -->
 +</sequence>
 </code> </code>
  
Line 70: Line 79:
 The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree conditions if behavior tree is present. See [[behavior_touchsensor#behavior_tree_conditions|ECBehaviorTouchSensor Behavior Tree Conditions]]. Replace ''touchSensor'' with ''touching.touchSensor'' or ''touching(id).touchSensor''. The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree conditions if behavior tree is present. See [[behavior_touchsensor#behavior_tree_conditions|ECBehaviorTouchSensor Behavior Tree Conditions]]. Replace ''touchSensor'' with ''touching.touchSensor'' or ''touching(id).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='myAction' id='doing something'> <action name='myAction' id='doing something'>
dragengine/modules/dragonscript/behavior_touching.1746199809.txt.gz · Last modified: 2025/05/02 15:30 by dragonlord