This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_forcefield [2025/05/01 17:53] – dragonlord | dragengine:modules:dragonscript:behavior_forcefield [2025/05/12 21:26] (current) – dragonlord | ||
|---|---|---|---|
| Line 181: | Line 181: | ||
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| |enabled|'' | |enabled|'' | ||
| + | |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 210: | Line 211: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ====== 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 '' | ||
| + | |||
| + | ===== forceField.enabled ===== | ||
| + | |||
| + | Force field has been enabled. | ||
| + | |||
| + | ===== forceField.disabled ===== | ||
| + | |||
| + | Force field has been disabled. | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 219: | Line 240: | ||
| * [[behavior_collider|ECBehaviorCollider]]: | * [[behavior_collider|ECBehaviorCollider]]: | ||
| * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
| + | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
| + | |||
| ====== Persistency ====== | ====== Persistency ====== | ||
| Line 283: | Line 306: | ||
| <string name=' | <string name=' | ||
| | | ||
| - | <!-- optional: | + | <!-- optional: |
| - | <string | + | <list name=' |
| + | < | ||
| + | <string> | ||
| + | </list> | ||
| + | |||
| + | <!-- optional: add state machines. default adds all state machines. --> | ||
| + | < | ||
| + | | ||
| + | <string> | ||
| + | </list> | ||
| | | ||
| <!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||