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 21:50] – [Optional Behaviors] 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 ====== |