tikitofu
New member
Hi, I created a new Action which tries to return closest resource to the GameObject on an ExternalBehaviorTree. My function in the Action requires the GameObject that the Behavior Tree is running on.
However, I'm having trouble being able to define that. Would that be considered a 'SharedGameObject'? I'm not able to find the definition of shared variable in the docs. Are shared variables ones you define inside of a behavior tree?
Also, I'm trying to follow the RTS example, but it doesn't seem to use ExternalBehaviors, rather copying/pasting of trees. Is there an example using ExternalBehaviors (which I assume would be the better approach to having multiple objects running the same tree)?
Hopefully my question made sense, thanks!
However, I'm having trouble being able to define that. Would that be considered a 'SharedGameObject'? I'm not able to find the definition of shared variable in the docs. Are shared variables ones you define inside of a behavior tree?
Also, I'm trying to follow the RTS example, but it doesn't seem to use ExternalBehaviors, rather copying/pasting of trees. Is there an example using ExternalBehaviors (which I assume would be the better approach to having multiple objects running the same tree)?
Hopefully my question made sense, thanks!