This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_touchsensor [2025/05/02 15:19] – dragonlord | dragengine:modules:dragonscript:behavior_touchsensor [2025/05/04 13:50] (current) – [touchSensor.check] dragonlord | ||
---|---|---|---|
Line 90: | Line 90: | ||
Element entered touch sensor. | Element entered touch sensor. | ||
- | |||
===== elementLeft ===== | ===== elementLeft ===== | ||
Line 128: | Line 127: | ||
|count.greater|integer|Count of touching elements is greater than integer value| | |count.greater|integer|Count of touching elements is greater than integer value| | ||
|player|'' | |player|'' | ||
+ | |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: | ||
Line 161: | Line 161: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====== State Machine Actions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Conditions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Events ====== | ||
+ | |||
+ | This behavior sends these state machine events. If behavior has non-empty identifier replace '' | ||
+ | |||
+ | ===== touchSensor.entered ===== | ||
+ | |||
+ | Element entered touch sensor. | ||
+ | |||
+ | ===== touchSensor.left ===== | ||
+ | |||
+ | Element left touch sensor. | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 170: | Line 190: | ||
* [[behavior_collider|ECBehaviorCollider]]: | * [[behavior_collider|ECBehaviorCollider]]: | ||
* [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 218: | Line 239: | ||
are a list of bits to set. --> | are a list of bits to set. --> | ||
<string name=' | <string name=' | ||
+ | | ||
+ | <!-- optional: use behavior tree with id instead of empty string --> | ||
+ | <string name=' | ||
+ | | ||
+ | <!-- optional: use state machine with id instead of empty string --> | ||
+ | <string name=' | ||
| | ||
<!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> |