User Tools

Site Tools


dragengine:modules:dragonscript:behavior_attachslot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_attachslot [2025/05/02 21:36] – [Behavior Factory] dragonlorddragengine:modules:dragonscript:behavior_attachslot [2025/05/04 13:46] (current) – [attachSlot.check] dragonlord
Line 79: Line 79:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |empty|''true'', ''false''|Attach slot is empty or not| |empty|''true'', ''false''|Attach slot is empty or not|
 +|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:
 </action> </action>
 </code> </code>
 +
 +====== State Machine Actions ======
 +
 +Same as [[#behavior_tree_actions|Behavior Tree Actions]].
 +
 +====== State Machine Conditions ======
 +
 +Same as [[#behavior_tree_conditions|Behavior Tree Conditions]].
 +
 +====== State Machine Events ======
 +
 +This behavior sends these state machine events. If behavior has non-empty identifier replace ''attachSlot'' with ''attachSlot(id)''.
 +
 +===== 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]]: Add actions and conditions for behavior trees to use.   * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: Add actions and conditions for behavior trees to use.
 +  * [[behavior_statemachine|ECBehaviorStateMachine]]: Add actions and conditions for state machine to use and events to send to the state machine.
  
 ====== Persistency ====== ====== Persistency ======
dragengine/modules/dragonscript/behavior_attachslot.1746221816.txt.gz · Last modified: 2025/05/02 21:36 by dragonlord