So I'm experiencing a problem whenever agents are reaching this task.
the first task:
this task is taking a gameObject from a script as the leader (could be a player or a different agent both have NPC script on the exception happens in both cases).
The leader agent have the same tree as the following agents
and pass it with SharedGameObject to the formation.
The IHaveLeaderGo Task also make sure there is a leader game object before passing it onwards with :
MyLeader.Value = myStats.myLeader.gameObject;
if (myStats.myLeader == null)
{
return TaskStatus.Failure;
}
return TaskStatus.Success;
i would very much like to know what am I missing or doing wrong that makes this task not work
the first task:
this task is taking a gameObject from a script as the leader (could be a player or a different agent both have NPC script on the exception happens in both cases).
The leader agent have the same tree as the following agents
and pass it with SharedGameObject to the formation.
The IHaveLeaderGo Task also make sure there is a leader game object before passing it onwards with :
MyLeader.Value = myStats.myLeader.gameObject;
if (myStats.myLeader == null)
{
return TaskStatus.Failure;
}
return TaskStatus.Success;
i would very much like to know what am I missing or doing wrong that makes this task not work