Creates a brain for an object, if it does not have one already, and assigns a Behavior Tree to it.
Note: In V19.1.0+, the command effect is global in a multiplayer session.
The BT must first be loaded with the loadBTSet command. When the command is called with an empty array, the behavior running on the target entity, group, or object is terminated and removed. For example, after calling:
The soldier stops performing whatever behavior they were running previously (if any).
|Syntax:||object setBT [set, tree]|
|Return Value:||Number - Can be one of the following:|
(group leader1) setBT ["BLUFOR_AI","Patrol"]
|See also:||loadBTSet, isActor, getBT|