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
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_interactionelement [2026/11/20 16:12] – [interactionElement.update] dragonlorddragengine:modules:dragonscript:behavior_interactionelement [2026/11/20 16:24] (current) – [interactionElement.check] dragonlord
Line 65: Line 65:
 |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.parameters|string|Optional parameters to use with ''interaction.query''.| |interact.parameters|string|Optional parameters to use with ''interaction.query''.|
 +|matches|<target>|<WRAP>Stored interaction element matches target:
 +  * ''eventParameter'': State machine content event parameter
 +</WRAP>|
 +|matches.not|<target>|<WRAP>Stored interaction element does not match target:
 +  * ''eventParameter'': State machine content event parameter
 +</WRAP>|
 |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 94: Line 100:
 |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.parameters|string|Optional parameters to use with ''interaction.query''| |interactionElement.interact.parameters|string|Optional parameters to use with ''interaction.query''|
 +|interactionElement.matches|<target>|<WRAP>Stored interaction element matches target:
 +  * ''eventParameter'': State machine content event parameter
 +</WRAP>|
 +|interactionElement.matches.not|<target>|<WRAP>Stored interaction element does not match target:
 +  * ''eventParameter'': State machine content event parameter
 +</WRAP>|
  
 This is an example of using this condition: This is an example of using this condition:
dragengine/modules/dragonscript/behavior_interactionelement.1795191173.txt.gz · Last modified: by dragonlord