Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Add patrol to a navmesh script

Discussion in 'Scripting' started by undyingwill, Mar 19, 2017.

  1. undyingwill

    undyingwill

    Joined:
    Feb 3, 2016
    Posts:
    92
    Hello, i have baked navmesh, enemy with navmesh agent script that detects player from certain distance and follow it.
    If enemy doesn't see player = stay on one place

    When add patrol script with waypoints, so enemy partol with these waypoints when he doesn't see player, but when navmesh agent script is ON, the enemy doesn't use partol waypoints and again just stays.

    What i have to add to the navmesh agent script, so it knows about patrolling script?
     
unityunity