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:28] – [touchSensor.update] dragonlord | dragengine:modules:dragonscript:behavior_touchsensor [2026/11/20 16:51] (current) – [touchSensor.set] dragonlord | ||
|---|---|---|---|
| Line 132: | Line 132: | ||
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| - | |eventElement.runEvent|string|Run | + | |touching.runEvent|string|Run |
| This is an example of using this action: | This is an example of using this action: | ||
| <code xml> | <code xml> | ||
| - | <action name=' | + | <action name=' |
| - | < | + | < |
| </ | </ | ||
| </ | </ | ||
| Line 150: | Line 150: | ||
| |count.less|integer|Count of touching elements is less than integer value| | |count.less|integer|Count of touching elements is less than integer value| | ||
| |count.greater|integer|Count of touching elements is greater than integer value| | |count.greater|integer|Count of touching elements is greater than integer value| | ||
| - | |eventElement.flags.set|string|Event BehaviorElement has [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag set. Use only inside '' | ||
| - | |eventElement.flags.clear|string|Event BehaviorElement has [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag cleared. Use only inside '' | ||
| |player|'' | |player|'' | ||
| |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| | |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| | ||
| Line 179: | 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|'' | ||
| - | |touchSensor.eventElement.flags.set|string|Event BehaviorElement has [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag set. Use only inside '' | ||
| - | |touchSensor.eventElement.flags.clear|string|Event BehaviorElement has [[behavior_btsmflags|ECBehaviorBTSMFlags]] with named flag cleared. Use only inside '' | ||
| This is an example of using this condition: | This is an example of using this condition: | ||
| Line 204: | 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 ====== | ||