Search Unity

Survival Shooter navmesh and player tag issue

Discussion in 'Editor & General Support' started by tvance929, Feb 17, 2016.

  1. tvance929

    tvance929

    Joined:
    May 15, 2015
    Posts:
    14
    So I was going through the Survival Shooter tutorial with the new version of Unity and found that the follow actions of the enemies wasnt working.

    Maybe I did something out of order but I found that I had to change the tag from Player to ThePlayer ( or whatever) ...at this point it started finding my player. With the standard Player tag it didnt find my player (even though the Player tag was set).

    Hope this helps someone else who has this problem.
     
  2. yopunky

    yopunky

    Joined:
    Sep 1, 2014
    Posts:
    9
    Thanks. This happened to me too. I started this tutorial from the beginning and think I followed everything in the correct order. But you're right, adding a new tag like "ThePlayer" to Player and changing the EnemyMovement script from "Player" to "ThePlayer" allows this to work. I also thought it might have been something to do with the new NavMesh Agent in Unity 5 and spent a while changing the settings.