Both sides previous revisionPrevious revision | |
dragengine:modules:dragonscript:behavior_lookat [2025/05/11 17:17] – [lookAt.check] dragonlord | dragengine:modules:dragonscript:behavior_lookat [2025/05/13 13:57] (current) – dragonlord |
---|
|lookAt.player|''true'', ''false''|Is looking at player| | |lookAt.player|''true'', ''false''|Is looking at player| |
|interact.name|string|Name of interaction| | |interact.name|string|Name of interaction| |
|interact.has|''true'', ''false''|Interaction element is looked-at and interaction with name ''interaction.name'' is present| | |interact.has|''true'', ''false''|Element is looked-at and interaction with name ''interaction.name'' is present| |
|interact.query|''true'', ''false''|Interact with looked-at element and test result. Condition is true if interaction element is looked-at, interaction with name ''interaction.name'' is present and interaction returns true. It is recommended to use here only interactions without side effects (hence query interactions).| | |interact.query|''true'', ''false''|Interact with looked-at element and test result. Condition is true if element is looked-at, interaction with name ''interaction.name'' is present and interaction returns true. It is recommended to use here only interactions without side effects (hence query interactions).| |
|interact.parameters|string|Optional parameters to use with ''interaction.query''.| | |interact.parameters|string|Optional parameters to use with ''interaction.query''.| |
|wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| | |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| |
|lookAt.lookAt.player|''true'', ''false''|Is looking at player| | |lookAt.lookAt.player|''true'', ''false''|Is looking at player| |
|lookAt.interact.name|string|Name of interaction| | |lookAt.interact.name|string|Name of interaction| |
|lookAt.interact.has|''true'', ''false''|Interaction element is looked-at and interaction with name ''interaction.name'' is present| | |lookAt.interact.has|''true'', ''false''|Element is looked-at and interaction with name ''interaction.name'' is present| |
|lookAt.interact.query|''true'', ''false''|Interact with looked-at element and test result. Condition is true if interaction element is looked-at, interaction with name ''interaction.name'' is present and interaction returns true. It is recommended to use here only interactions without side effects (hence query interactions).| | |lookAt.interact.query|''true'', ''false''|Interact with looked-at element and test result. Condition is true if element is looked-at, interaction with name ''interaction.name'' is present and interaction returns true. It is recommended to use here only interactions without side effects (hence query interactions).| |
|lookAt.interact.parameters|string|Optional parameters to use with ''interaction.query''.| | |lookAt.interact.parameters|string|Optional parameters to use with ''interaction.query''.| |
| |