| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| dragengine:modules:dragonscript:behavior_interactionelement [2026/11/20 16:12] – [interactionElement.update] dragonlord | dragengine:modules:dragonscript:behavior_interactionelement [2026/11/20 16:24] (current) – [interactionElement.check] dragonlord |
|---|
| |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| |
| |
| |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: |