This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_projecttoground [2025/05/02 15:53] – dragonlord | dragengine:modules:dragonscript:behavior_projecttoground [2025/05/04 13:44] (current) – [projectToGround.check] dragonlord | ||
---|---|---|---|
Line 51: | Line 51: | ||
|enabled|'' | |enabled|'' | ||
|ground|'' | |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: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====== State Machine Actions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Conditions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== 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]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 134: | Line 164: | ||
| | ||
< | < | ||
+ | <!-- 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 --> | ||
<boolean name=' | <boolean name=' |