- Home /
Enemy patrol is not working in AI Behavior plugin
Hello....I am trying to make the enemy patrol using the AI behavior plugin. I did what is showed in video for patrol but the enemy is not doing anything it stays at its initial position..and a error message is showed....
"SetDestination" can only be called on an active agent that has been placed on a NavMesh. UnityEngine.NavMeshAgent:set_destination(Vector3) AIBehaviors:MoveAgent(Vector3, Single, Single) (at Assets/Plugins/AIBehaviorsMadeEasy/AIBehaviors.cs:423) PatrolState:Action(AIBehaviors) (at Assets/Plugins/AIBehaviorsMadeEasy/States/PatrolState.cs:212) BaseState:HandleAction(AIBehaviors) (at Assets/Plugins/AIBehaviorsMadeEasy/States/BaseState.cs:163) AIBehaviors:Update() (at Assets/Plugins/AIBehaviorsMadeEasy/AIBehaviors.cs:207)
Please tell what should I do to overcome this...
Your answer
Follow this Question
Related Questions
How to remove z axis control from script 1 Answer
npc patrol and chase 1 Answer
Monster Patrolling 1 Answer
Make AI move using CharacterController.Move instead of rigidbody.velocity? 3 Answers