This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_lookat [2025/05/02 15:51] – dragonlord | dragengine:modules:dragonscript:behavior_lookat [2025/05/04 13:44] (current) – [lookAt.check] dragonlord | ||
---|---|---|---|
Line 71: | Line 71: | ||
|lookAt.distance.greater|float|Distance to look-at element is greater than value meters| | |lookAt.distance.greater|float|Distance to look-at element is greater than value meters| | ||
|lookAt.player|'' | |lookAt.player|'' | ||
+ | |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 104: | Line 105: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====== State Machine Actions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Conditions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Events ====== | ||
+ | |||
+ | This behavior sends these state machine events. | ||
+ | |||
+ | ===== lookAt.enabled ===== | ||
+ | |||
+ | Look-at has been enabled. | ||
+ | |||
+ | ===== lookAt.disabled ===== | ||
+ | |||
+ | Look-at has been disabled. | ||
+ | |||
+ | ===== lookAt.lookAt ===== | ||
+ | |||
+ | Looking at an element. Send if looking at an element when previously not looking at an element or looking at a different element. | ||
+ | |||
+ | ===== lookAt.noLookAt ===== | ||
+ | |||
+ | Not looking at an element. Send if not looking at an element when previously has been looking at an element. | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 116: | Line 145: | ||
* [[behavior_locomotion|ECBehaviorLocomotion]]: | * [[behavior_locomotion|ECBehaviorLocomotion]]: | ||
* [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 175: | Line 205: | ||
<!-- optional: use component with id instead of empty string --> | <!-- optional: use component with id instead of empty string --> | ||
<string name=' | <string name=' | ||
+ | | ||
+ | <!-- 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 --> |