This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dragengine:modules:dragonscript:behavior_rideon [2025/05/04 13:45] – [rideOn.check] dragonlord | dragengine:modules:dragonscript:behavior_rideon [2025/05/13 14:02] (current) – dragonlord | ||
---|---|---|---|
Line 32: | Line 32: | ||
This behavior adds these behavior tree actions if behavior tree is present. | This behavior adds these behavior tree actions if behavior tree is present. | ||
+ | |||
+ | ===== rideOn.update ===== | ||
+ | |||
+ | Update ride on. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |interact|string|Interact with ridable 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.parameters|string|Optional parameters to use with '' | ||
+ | |interactElement.assign|string|Assign ridable to [[behavior_interactelement|ECBehaviorInteractElement]] with identifier matching value string. Action fails if no element is ridable or interact element behavior is absent| | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
===== rideOn.check ===== | ===== rideOn.check ===== | ||
Line 39: | Line 55: | ||
^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
|ridable|'' | |ridable|'' | ||
+ | |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 61: | Line 81: | ||
^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
|rideOn.ridable|'' | |rideOn.ridable|'' | ||
+ | |rideOn.interact.name|string|Name of interaction| | ||
+ | |rideOn.interact.has|'' | ||
+ | |rideOn.interact.query|'' | ||
+ | |rideOn.interact.parameters|string|Optional parameters to use with '' | ||
This is an example of using this condition: | This is an example of using this condition: |