Hmm. Within this same method (Execute), there is this piece of code:
1
2
3
4
5
6
if(!Set(agent,blackboard)){
latch=false;
returnStatus.Failure;
}
The above code, is basically handling the agent null check but also initializes the agent. The reason this piece of code is not at the very top, is so that the checks and initialization only happen when the action is executed initially (and not every time while it is running).
It seems however that in your case, the agent is destroyed while the action in question is Running or paused?
Are you maybe destroying the agent from within an action task, or is destruction happening from some outside piece of code?
Please let me know.
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.