This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dragengine:modules:dragonscript:behavior_grabber [2025/05/11 13:27] – [grabber.set] dragonlord | dragengine:modules:dragonscript:behavior_grabber [2025/05/13 14:05] (current) – dragonlord | ||
---|---|---|---|
Line 103: | Line 103: | ||
|release| |Release grab spot if grabbing one.| | |release| |Release grab spot if grabbing one.| | ||
|interactElement.assign|string|Assign grab spot element to [[behavior_interactelement|ECBehaviorInteractElement]] with identifier matching value string. Action fails if no element is grabbed or interact element behavior is absent| | |interactElement.assign|string|Assign grab spot element to [[behavior_interactelement|ECBehaviorInteractElement]] with identifier matching value string. Action fails if no element is grabbed or interact element behavior is absent| | ||
+ | |interact|string|Interact with grab spot. 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.parameters|string|Optional parameters to use with '' | ||
This is an example of using this action: | This is an example of using this action: | ||
Line 118: | Line 120: | ||
|enabled|'' | |enabled|'' | ||
|grabbing|'' | |grabbing|'' | ||
+ | |interact.name|string|Name of interaction| | ||
+ | |interact.has|'' | ||
+ | |interact.query|'' | ||
+ | |interact.parameters|string|Optional parameters to use with '' | ||
|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 141: | Line 147: | ||
|grabber.enabled|'' | |grabber.enabled|'' | ||
|grabber.grabbing|'' | |grabber.grabbing|'' | ||
+ | |grabber.interact.name|string|Name of interaction| | ||
+ | |grabber.interact.has|'' | ||
+ | |grabber.interact.query|'' | ||
+ | |grabber.interact.parameters|string|Optional parameters to use with '' | ||
This is an example of using this condition: | This is an example of using this condition: |