User Tools

Site Tools


dragengine:modules:dragonscript:behavior_projecttoground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dragengine:modules:dragonscript:behavior_projecttoground [2025/05/13 13:53] – [projectToGround.check] dragonlorddragengine:modules:dragonscript:behavior_projecttoground [2025/05/13 13:59] (current) – old revision restored (2025/05/11 13:20) dragonlord
Line 79: Line 79:
 |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|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 ''interaction''.| |interact.parameters|string|Optional parameters to use with ''interaction''.|
 +
  
 This is an example of using this action: This is an example of using this action:
Line 100: Line 101:
 |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|''true'', ''false''|Angle between collision normal and project to ground direction is less than ''landingAngle'' property| |landing|''true'', ''false''|Angle between collision normal and project to ground direction is less than ''landingAngle'' property|
-|wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| 
 |interact.name|string|Name of interaction| |interact.name|string|Name of interaction|
-|interact.has|''true'', ''false''|Ground element is present and interaction with name ''interaction.name'' is present| +|interact.has|''true'', ''false''|Has ground element and interaction with name ''interaction.name'' is present| 
-|interact.query|''true'', ''false''|Ground element is present 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 ground element and test result. Condition is true if ground element is present, 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''.|
 +|wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled|
  
 This is an example of using this action: This is an example of using this action:
Line 133: Line 133:
 |projectToGround.landing|''true'', ''false''|Angle between collision normal and project to ground direction is less than ''landingAngle'' property| |projectToGround.landing|''true'', ''false''|Angle between collision normal and project to ground direction is less than ''landingAngle'' property|
 |projectToGround.interact.name|string|Name of interaction| |projectToGround.interact.name|string|Name of interaction|
-|projectToGround.interact.has|''true'', ''false''|Ground element is present and interaction with name ''interaction.name'' is present| +|projectToGround.interact.has|''true'', ''false''|Has ground element and interaction with name ''interaction.name'' is present| 
-|projectToGround.interact.query|''true'', ''false''|Ground element is present 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).|+|projectToGround.interact.query|''true'', ''false''|Interact with ground element and test result. Condition is true if ground element is present, 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).|
 |projectToGround.interact.parameters|string|Optional parameters to use with ''interaction.query''.| |projectToGround.interact.parameters|string|Optional parameters to use with ''interaction.query''.|
- 
  
 This is an example of using this condition: This is an example of using this condition:
dragengine/modules/dragonscript/behavior_projecttoground.1747144419.txt.gz · Last modified: 2025/05/13 13:53 by dragonlord