I'm trying to have 2 allied A.I. shoot bullets at zombies when they come in range. Note: These npcs are NOT controlled by players. I already know how to make the player shoot, im looking for how to make the A.I. shoot.
Thank you to all that help.
EDIT: Ok I changed it I got the A.I. to shoot but it only shoots up I used this code instead. I want the bullet to shoot towards a zombie.
instance_nearest(x, y, enemy_parent)
instance_create(x, y, obj_bullet)
Edited by Lockpwnage, 03 January 2012 - 03:35 AM.