This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_hearsounds [2025/05/02 15:08] – dragonlord | dragengine:modules:dragonscript:behavior_hearsounds [2025/05/04 13:49] (current) – [hearSound.check] dragonlord | ||
|---|---|---|---|
| Line 102: | Line 102: | ||
| |count.greater|integer|Count of audible elements is greater than integer value| | |count.greater|integer|Count of audible 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 109: | Line 110: | ||
| < | < | ||
| </ | </ | ||
| - | <!-- actions here run only if element | + | <!-- actions here run only if player |
| </ | </ | ||
| </ | </ | ||
| Line 135: | Line 136: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ====== State Machine Actions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Conditions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Events ====== | ||
| + | |||
| + | This behavior sends these state machine events. | ||
| + | |||
| + | ===== hearSound.audible ===== | ||
| + | |||
| + | Element become audible. | ||
| + | |||
| + | ===== hearSound.inaudible ===== | ||
| + | |||
| + | Element became inaudible. | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 144: | Line 165: | ||
| * [[behavior_collider|ECBehaviorCollider]]: | * [[behavior_collider|ECBehaviorCollider]]: | ||
| * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
| + | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
| ====== Persistency ====== | ====== Persistency ====== | ||
| Line 186: | Line 208: | ||
| | | ||
| < | < | ||
| + | <!-- 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 --> | ||
| <float name=' | <float name=' | ||