- Home /
help setting a Npc to attack multitple enemies
If anybody can help me it would be greatly appreciated. I am trying to set up the turret from the FPS tutorial to kill multiple enemies and it is not working. Originally it was set to attack the fps with the (player) tag. But I added a new tag (enemies), which seem to work only for one gameobject that is with that tag. I would like it to kill gameoject with that tag. any info or suggestion will be helpful
and I did change the FindWithTag(Player) to ("Enemies")
function Start () { if (target == null && GameObject.FindWithTag("Enemies")) target = GameObject.FindWithTag("Enemies").transform; still did not work
Your answer
Follow this Question
Related Questions
Can unity3d combined with Artificial Intelligent or Soft Computing? 3 Answers
Ai Upgrade?? Possible 1 Answer
Making an AI for an NPC 1 Answer
Ai Zombie Melee Attack script. 5 Answers