User Tools

Site Tools


dragengine:modules:dragonscript:behavior_lookat

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_lookat [2025/05/02 21:34] – [Behavior Factory] dragonlorddragengine: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|''true'', ''false''|Is looking at player| |lookAt.player|''true'', ''false''|Is looking at 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:
 </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.
 +
 +===== 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]]: Use lcomotion looking state to direct test ray cast direction   * [[behavior_locomotion|ECBehaviorLocomotion]]: Use lcomotion looking state to direct test ray cast direction
   * [[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 ======
dragengine/modules/dragonscript/behavior_lookat.1746221681.txt.gz · Last modified: 2025/05/02 21:34 by dragonlord