ID:176585
Dec 31 2002, 7:50 am
|
|
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!
|
Dec 31 2002, 1:30 pm
|
|
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)
|