Question by
GameMaker1111 · Feb 03 at 10:28 AM ·
rotationmovement scriptnpcaimtop down
How to Make NPC Rotate Towards the Player With the Bullets Being Rotated as Well.
Right now when the NPC sees the player it's starts shooting but the NPC does not look at the player and the bullets are being instainited but not being aimed at the player.
This is what I have so far:
Vector3 position = new Vector3(farRangeNPC.transform.position.x, farRangeNPC.transform.position.y, farRangeNPC.transform.position.z); var bullets = MonoBehaviour.Instantiate(prefab, position, Quaternion.identity);
Comment