How to Pause Behavior Tree From Outside Script?

Eeric

New member
I'm very inexperienced in Unity.

How would I pause the Behavior Tree from an outside script?
I'm guessing it has something to do with "behaviorTree.DisableBehavior(true)"
but I don't know how to call this from an outside script. It doesn't recognize the command.

Thanks for your patience with me! :D
 
Nevermind!! Found

GetComponent<BehaviorTree>().DisableBehavior(true);

and

GetComponent<BehaviorTree>().EnableBehavior();
 
Top