User Tools

Site Tools


dragengine:modules:dragonscript:behavior_interactionelement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dragengine:modules:dragonscript:behavior_interactionelement [2025/05/11 15:11] – [Behavior Factory] dragonlorddragengine:modules:dragonscript:behavior_interactionelement [2025/05/11 15:20] (current) dragonlord
Line 37: Line 37:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |interact|string|Interact with stored element. If element is absent action fails. Runs interaction with name value. If interaction with name value is absent fails action. If interaction returns false fails action. Otherwise action succeeds.| |interact|string|Interact with stored element. If element is absent action fails. Runs interaction with name value. If interaction with name value is absent fails action. If interaction returns false fails action. Otherwise action succeeds.|
-|interact.parameter|string|Optional parameter to use with ''interaction''.|+|interact.parameters|string|Optional parameters to use with ''interaction''.|
 |assign|string|Assign stored interaction element to another ECBehaviorInteractionElement with identifier value| |assign|string|Assign stored interaction element to another ECBehaviorInteractionElement with identifier value|
 |clear|string|Clear stored interaction element| |clear|string|Clear stored interaction element|
Line 57: Line 57:
 |interact.has|''true'', ''false''|Interaction element is stored and interaction with name ''interaction.name'' is present| |interact.has|''true'', ''false''|Interaction element is stored and interaction with name ''interaction.name'' is present|
 |interact.query|''true'', ''false''|Interact with stored element and test result. Condition is true if interaction element is stored, 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 stored element and test result. Condition is true if interaction element is stored, 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.parameter|string|Optional parameter 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|
  
Line 84: Line 84:
 |interactionElement.interact.has|''true'', ''false''|Interaction element is stored and interaction with name ''interaction.name'' is present| |interactionElement.interact.has|''true'', ''false''|Interaction element is stored and interaction with name ''interaction.name'' is present|
 |interactionElement.interact.query|''true'', ''false''|Interact with stored element and test result. Condition is true if interaction element is stored, 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).| |interactionElement.interact.query|''true'', ''false''|Interact with stored element and test result. Condition is true if interaction element is stored, 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).|
-|interactionElement.interact.parameter|string|Optional parameter to use with ''interaction.query''|+|interactionElement.interact.parameters|string|Optional parameters to use with ''interaction.query''|
  
 This is an example of using this condition: This is an example of using this condition:
dragengine/modules/dragonscript/behavior_interactionelement.txt · Last modified: 2025/05/11 15:20 by dragonlord