ID:176585
 
Im looking for a way to make my ai's smarter and I think I know how but dont know how to code it ^_^. Does anyone know how to make it so Monsters can fire attacks at a player? If you do could you please make a demo and or email me at [email protected]. Thx in advance!
Yes. To make the mob use a different attack, you call a different proc.
mob
monster
badguy
icon='whatever.dmi'
New()
while(src)
if(BLABLA)
for(var/mob/M in oview(1))
M.attack()
sleep(4)
In response to Goku72
no i want to so they can shoot missles and stuff at different people and do pretty much whatever a player can do
In response to X0Gohan0X
Use that code I gave you above, just get rid of Attack(M) and put in what ever.
In response to Goku72
EG. Fire_missile(M)