Search Unity

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?