- Home /
Question by
Eco-Editor · Jul 06, 2017 at 11:10 AM ·
c#functionnavmeshagentavatarresume
Why do I get this error when enable/disable rooms?
Hi everybody.
I have a system of rooms in my scene. Rooms with avatars with a navmesh agent on them, and they patrol all the time.
I get this error though each time the room is disabled/enabled:
"Resume" can only be called on an active agent that has been placed on a NavMesh. "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
My guess, the room was disabled, but the avatar's script wasn't updated about it, continued to execute the functions from a disabled avatar (being a child object of the room). How can this be fixed??
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Pacman ghost behaviour 0 Answers
Interesting collision question 0 Answers