This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_projecttoground [2025/05/09 17:13] – [projectToGround.check] dragonlord | dragengine:modules:dragonscript:behavior_projecttoground [2025/05/13 13:59] (current) – old revision restored (2025/05/11 13:20) dragonlord | ||
---|---|---|---|
Line 53: | Line 53: | ||
This behavior adds these behavior tree actions if behavior tree is present. | This behavior adds these behavior tree actions if behavior tree is present. | ||
+ | |||
+ | ===== projectToGround.set ===== | ||
+ | |||
+ | Set one or more project to ground parameters. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |enabled|'' | ||
+ | |ground|'' | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | < | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== projectToGround.update ===== | ||
+ | |||
+ | Update project to ground. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |interactElement.assign|string|Assign ground element to [[behavior_interactelement|ECBehaviorInteractElement]] with identifier matching value string. Action fails if not touching element or interact element behavior is absent| | ||
+ | |interact|string|Interact with ground 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 '' | ||
+ | |||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | < | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
===== projectToGround.check ===== | ===== projectToGround.check ===== | ||
Line 61: | Line 97: | ||
|enabled|'' | |enabled|'' | ||
|ground|'' | |ground|'' | ||
+ | |ground.element|'' | ||
|hitAngle.less|float|Angle between collision normal and project to ground direction is less than value in degrees| | |hitAngle.less|float|Angle between collision normal and project to ground direction is less than value in degrees| | ||
|hitAngle.greater|float|Angle between collision normal and project to ground direction is greater than value in degrees| | |hitAngle.greater|float|Angle between collision normal and project to ground direction is greater than value in degrees| | ||
|landing|'' | |landing|'' | ||
+ | |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 87: | Line 128: | ||
|projectToGround.enabled|'' | |projectToGround.enabled|'' | ||
|projectToGround.ground|'' | |projectToGround.ground|'' | ||
+ | |projectToGround.ground.element|'' | ||
|projectToGround.hitAngle.less|float|Angle between collision normal and project to ground direction is less than value in degrees| | |projectToGround.hitAngle.less|float|Angle between collision normal and project to ground direction is less than value in degrees| | ||
|projectToGround.hitAngle.greater|float|Angle between collision normal and project to ground direction is greater than value in degrees| | |projectToGround.hitAngle.greater|float|Angle between collision normal and project to ground direction is greater than value in degrees| | ||
|projectToGround.landing|'' | |projectToGround.landing|'' | ||
+ | |projectToGround.interact.name|string|Name of interaction| | ||
+ | |projectToGround.interact.has|'' | ||
+ | |projectToGround.interact.query|'' | ||
+ | |projectToGround.interact.parameters|string|Optional parameters to use with '' | ||
This is an example of using this condition: | This is an example of using this condition: |