User Tools

Site Tools


dragengine:modules:dragonscript:behavior_projecttoground

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_projecttoground [2025/05/02 15:53] dragonlorddragengine:modules:dragonscript:behavior_projecttoground [2025/05/04 13:44] (current) – [projectToGround.check] dragonlord
Line 51: Line 51:
 |enabled|''true'', ''false''|Project to ground is enabled| |enabled|''true'', ''false''|Project to ground is enabled|
 |ground|''true'', ''false''|Touching ground| |ground|''true'', ''false''|Touching ground|
 +|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 81: Line 82:
 </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.
 +
 +===== projectToGround.enabled =====
 +
 +Project to ground has been enabled.
 +
 +===== projectToGround.disabled =====
 +
 +Project to ground has been disabled.
 +
 +===== projectToGround.touch =====
 +
 +Element is touching ground while previously has not been touching ground.
 +
 +===== projectToGround.noTouch =====
 +
 +Element is not touching ground while previously has been touching ground.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 89: Line 118:
  
   * [[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 134: Line 164:
      
   <behavior type='ECBehaviorProjectToGround'>   <behavior type='ECBehaviorProjectToGround'>
 +    <!-- optional: use behavior tree with id instead of empty string -->
 +    <string name='behaviorTree'>second</string>
 +    
 +    <!-- optional: use state machine with id instead of empty string -->
 +    <string name='stateMachine'>second</string>
 +    
     <!-- set element properties. omit property prefix if used inside behavior tag -->     <!-- set element properties. omit property prefix if used inside behavior tag -->
     <boolean name='.applyToActor'>false</boolean>     <boolean name='.applyToActor'>false</boolean>
dragengine/modules/dragonscript/behavior_projecttoground.1746201237.txt.gz · Last modified: 2025/05/02 15:53 by dragonlord