how to make enemy move towards the player ?
i have taken ThirdPersonController as enemy and FirstPersonController as Player i want my enemy to move toward player in the game
In script AlCharacterControl if i put the target as player's transform prefab then when the game starts instead of moving toward the player it start moving to the transform position of player which we have saved in prefab
suppose i have player position ha (300,100,800) in the prefab .
when the game starts if my player have moved to (400,100,900) then instead of enemy moving toward the players position (400,100,900) it moves to the players prefab position (300,100,800) why ????
As i am instantiating many enemy in my game i have make the prefab of both enemy and player and put my player transform in enemy AlCharacterControl scrpit but it doesnt work
Your answer
Follow this Question
Related Questions
Tilting Head with Camera from the FirstPersonController Script FPS controller provided in (Unity 5) 2 Answers
Instantiating at specific float values only? 1 Answer
Instantiate gameObject in custom position don't work 1 Answer
Act like a Trigger only with specific object 0 Answers
Cross scene referenced prefabs 0 Answers