-
Notifications
You must be signed in to change notification settings - Fork 8
ScriptEval
Guy Allard edited this page Jan 18, 2015
·
2 revisions
Description:
The ScriptEval leaf node runs a snippet of TorqueScript which can be written and edited directly in the behavior tree editor.
The variable %obj can be used to reference the object which owns the running tree.
The snippet can return a behavior status (SUCCESS, FAILURE or RUNNING), or a boolean (true/false can be used to indicate SUCCESS / FAILURE).
If the snippet does not return a value, then a default return status can be specified.
Parameters:
- behaviorScript - the TorqueScript snippet to run when this node is evaluated.
- defaultReturnStatus - the default status to return if the snippet does not return a value.