This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_attachslot [2025/05/02 11:02] – dragonlord | dragengine:modules:dragonscript:behavior_attachslot [2025/05/04 13:46] (current) – [attachSlot.check] dragonlord | ||
---|---|---|---|
Line 79: | Line 79: | ||
^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
|empty|'' | |empty|'' | ||
+ | |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 108: | Line 109: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====== 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 '' | ||
+ | |||
+ | ===== attachSlot.attached ===== | ||
+ | |||
+ | Attachable has been attached to slot | ||
+ | |||
+ | ===== attachSlot.detached ===== | ||
+ | |||
+ | Attachable has been removed from slot. | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 117: | Line 138: | ||
* [[behavior_collider|ECBehaviorCollider]] or [[behavior_vrhand|ECBehaviorVRHand]] | * [[behavior_collider|ECBehaviorCollider]] or [[behavior_vrhand|ECBehaviorVRHand]] | ||
* [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 161: | Line 183: | ||
<!-- optional: use vrhand behavior with id. if not set ECBehaviorCollider is used --> | <!-- optional: use vrhand behavior with id. if not set ECBehaviorCollider is used --> | ||
<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 --> |