This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_triggered [2025/05/02 21:43] – [Behavior Factory] dragonlord | dragengine:modules:dragonscript:behavior_triggered [2025/05/04 13:50] (current) – [trigger.check] dragonlord | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| ====== Behavior Tree Actions ====== | ====== Behavior Tree Actions ====== | ||
| - | This behavior adds these behavior tree actions if behavior tree is present. | + | This behavior adds these behavior tree actions if behavior tree is present. |
| ===== trigger.check ===== | ===== trigger.check ===== | ||
| Line 47: | Line 47: | ||
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| |state|'' | |state|'' | ||
| + | |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 60: | Line 61: | ||
| ====== Behavior Tree Conditions ====== | ====== Behavior Tree Conditions ====== | ||
| - | This behavior adds these behavior tree conditions if behavior tree is present. | + | This behavior adds these behavior tree conditions if behavior tree is present. |
| ===== trigger.check ===== | ===== trigger.check ===== | ||
| Line 76: | Line 77: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ====== State Machine Actions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Conditions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Events ====== | ||
| + | |||
| + | This behavior sends these state machine events. Replace '' | ||
| + | |||
| + | ===== trigger.true ===== | ||
| + | |||
| + | Trigger expression changed to true. | ||
| + | |||
| + | ===== trigger.false ===== | ||
| + | |||
| + | Trigger expression changed to false. | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 84: | Line 105: | ||
| * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
| + | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
| + | |||
| ====== Persistency ====== | ====== Persistency ====== | ||