This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dragengine:modules:dragonscript:behavior_alignactor [2025/03/13 17:08] – dragonlord | dragengine:modules:dragonscript:behavior_alignactor [2025/05/12 21:26] (current) – dragonlord | ||
---|---|---|---|
Line 35: | Line 35: | ||
===== finishedAligning ===== | ===== finishedAligning ===== | ||
+ | Actor finished aligning. | ||
+ | |||
+ | ====== Behavior Tree Actions ====== | ||
+ | |||
+ | This behavior adds these behavior tree actions if behavior tree is present. | ||
+ | |||
+ | ===== alignActor.update ===== | ||
+ | |||
+ | Update align actor. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |clear| |Clear target| | ||
+ | |initLocomotionPlayer| |Init locomotion for player actor use| | ||
+ | |cancel| |Cancel aligning if running| | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== alignActor.check ===== | ||
+ | |||
+ | Check one or more align actor parameters. Action succeeds if all parameter value matches their respective align actor parameter otherwise action fails. This action is typically used as first action in a sequence to run the sequence only if a align actor parameter matches (or not). | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |arrived|'' | ||
+ | |finished|'' | ||
+ | |succeeded|'' | ||
+ | |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: | ||
+ | <code xml> | ||
+ | < | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | <!-- actions here run only if align actor finished --> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== Behavior Tree Conditions ====== | ||
+ | |||
+ | This behavior adds these behavior tree conditions if behavior tree is present. | ||
+ | |||
+ | ===== alignActor.check ===== | ||
+ | |||
+ | Check one or more align actor parameters. Conditions returns true if all parameter value match their respective align actor parameter. This condition is typically used to run an action or sequence of actions as long as align actor conditions are true. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |alignActor.arrived|'' | ||
+ | |alignActor.finished|'' | ||
+ | |alignActor.succeeded|'' | ||
+ | |||
+ | This is an example of using this condition: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== State Machine Actions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Conditions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Events ====== | ||
+ | |||
+ | This behavior sends these state machine events. | ||
+ | |||
+ | ===== alignActor.start ===== | ||
+ | |||
+ | Actor begins aligning. | ||
+ | |||
+ | ===== alignActor.stop ===== | ||
+ | |||
Actor finished aligning. | Actor finished aligning. | ||
Line 44: | Line 125: | ||
* [[behavior_conversationactor|ECBehaviorConversationActor]]: | * [[behavior_conversationactor|ECBehaviorConversationActor]]: | ||
+ | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 96: | Line 179: | ||
| | ||
< | < | ||
+ | <!-- optional: add behavior trees. default adds all behavior trees. --> | ||
+ | <list name=' | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | | ||
+ | <!-- optional: add state machines. default adds all state machines. --> | ||
+ | <list name=' | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | | ||
<!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
<float name=' | <float name=' |