Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:18.1.0

Description

Description:Returns the name of the Behavior Tree (BT) that has been assigned to an object (with setBT).

Syntax

Syntax:getBT object
Parameters:
  • object: Object - The object that has a brain (in multiplayer, the object must be local).
Return Value:Array of String: [btset, tree] - The name of the set and the name of the tree that were assigned to the object. If the object has a brain assigned but no Behavior Tree, and empty array is returned. If the object has no brain assigned, nil is returned.

Examples

Examples:
_bt = getBT (group leader1)
_bt = getBT soldier1

Additional Information

See also: setBT, loadBTSet
Multiplayer:
Problems: 

Notes