User Tools

Site Tools


dragengine:modules:dragonscript:behavior_behaviortree

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_behaviortree [2026/10/11 01:34] – dragonlorddragengine:modules:dragonscript:behavior_behaviortree [2026/10/11 01:39] (current) – dragonlord
Line 79: Line 79:
 ===== gameWorld ===== ===== gameWorld =====
  
-Runs action from game world behavior [[gwbehavior_btsm|GWBehaviorBTSM]]. Game world behaviors can add behavior tree actions to GWBehaviorBTSM similar to how element class behaviors can add behavior tree actions to this behavior. This allows behavior trees to access actions specific to a game world. The action is run as if it has been added to this behavior. All parameters defined in the action are passed to the game world actionndition with the addition of the parameter ''behaviorElement'' set to the behavior element owning the state machine. If the element owning this behavior is not in a game world or the action can not be found, nothing is done.+Runs action from game world behavior [[gwbehavior_btsm|GWBehaviorBTSM]]. Game world behaviors can add behavior tree actions to GWBehaviorBTSM similar to how element class behaviors can add behavior tree actions to this behavior. This allows behavior trees to access actions specific to a game world. The action is run as if it has been added to this behavior. All parameters defined in the action are passed to the game world actionndition with the addition of the parameter ''element'' set to the behavior element owning the state machine. If the element owning this behavior is not in a game world or the action can not be found, nothing is done.
  
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
Line 100: Line 100:
 ===== gameWorld ===== ===== gameWorld =====
  
-Evaluate condition from game world behavior [[gwbehavior_btsm|GWBehaviorBTSM]]. Game world behaviors can add behavior tree conditions to GWBehaviorBTSM similar to how element class behaviors can add behavior tree conditions to this behavior. This allows behavior trees to access conditions specific to a game world. The condition is evaluated as if it has been added to this behavior. All parameters defined in the condition are passed to the game world condition with the addition of the parameter ''behaviorElement'' set to the behavior element owning the state machine. If the element owning this behavior is not in a game world or the condition can not be found, false is returned.+Evaluate condition from game world behavior [[gwbehavior_btsm|GWBehaviorBTSM]]. Game world behaviors can add behavior tree conditions to GWBehaviorBTSM similar to how element class behaviors can add behavior tree conditions to this behavior. This allows behavior trees to access conditions specific to a game world. The condition is evaluated as if it has been added to this behavior. All parameters defined in the condition are passed to the game world condition with the addition of the parameter ''element'' set to the behavior element owning the state machine. If the element owning this behavior is not in a game world or the condition can not be found, false is returned.
  
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
dragengine/modules/dragonscript/behavior_behaviortree.txt · Last modified: by dragonlord