This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_touchsensor [2026/10/09 23:21] – [touchSensor.check] dragonlord | dragengine:modules:dragonscript:behavior_touchsensor [2026/11/20 16:51] (current) – [touchSensor.set] dragonlord | ||
|---|---|---|---|
| Line 124: | Line 124: | ||
| <action name=' | <action name=' | ||
| < | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== touchSensor.update ===== | ||
| + | |||
| + | Update touch sensor. | ||
| + | |||
| + | ^Parameter^Value^Description^ | ||
| + | |touching.runEvent|string|Run state machine event on all touching elements supporting [[behavior_statemachine|ECBehaviorStateMachine]]| | ||
| + | |||
| + | This is an example of using this action: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | < | ||
| </ | </ | ||
| </ | </ | ||
| Line 163: | Line 177: | ||
| |touchSensor.count.greater|integer|Count of touching elements is greater than integer value| | |touchSensor.count.greater|integer|Count of touching elements is greater than integer value| | ||
| |touchSensor.player|'' | |touchSensor.player|'' | ||
| - | |eventElement.flags.set|string|Event BehaviorElement has [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag set. Use only inside '' | ||
| - | |eventElement.flags.clear|string|Event BehaviorElement has not [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag set. Use only inside '' | ||
| This is an example of using this condition: | This is an example of using this condition: | ||
| Line 188: | Line 200: | ||
| ===== touchSensor.entered ===== | ===== touchSensor.entered ===== | ||
| - | Element entered touch sensor. Element is send as event parameter. | + | Element entered touch sensor. Element is send as event parameter. Use [[behavior_statemachine# |
| ===== touchSensor.left ===== | ===== touchSensor.left ===== | ||
| - | Element left touch sensor. Element is send as event parameter. | + | Element left touch sensor. Element is send as event parameter. Use [[behavior_statemachine# |
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||