User Tools

Site Tools


dragengine:modules:dragonscript:behavior_occupier

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_occupier [2025/05/02 21:39] – [Behavior Factory] dragonlorddragengine:modules:dragonscript:behavior_occupier [2025/05/04 13:47] (current) – [occupier.check] dragonlord
Line 34: Line 34:
 Occupier claimed interaction spot. Occupier claimed interaction spot.
  
-===== spotReleased (Instance instance, ECBehaviorInteractionSpot.Instance interactionSpot)+===== spotReleased =====
  
 Occupier released interaction spot. Occupier released interaction spot.
Line 57: Line 57:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |occupying|''true'', ''false''|Occupier is occupying an interaction spot| |occupying|''true'', ''false''|Occupier is occupying an interaction spot|
 +|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 86: Line 87:
 </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 ''occupier'' with ''occupier(id)''.
 +
 +===== occupier.claimed =====
 +
 +Occupier claimed interaction spot.
 +
 +===== occupier.released =====
 +
 +Occupier released interaction spot.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 94: Line 115:
  
   * [[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 ======
Line 100: Line 122:
  
 ====== API Documentation ====== ====== API Documentation ======
 +
 #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorOccupier.html,ECBehaviorOccupier~@#. #@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorOccupier.html,ECBehaviorOccupier~@#.
  
dragengine/modules/dragonscript/behavior_occupier.1746221962.txt.gz · Last modified: 2025/05/02 21:39 by dragonlord