ID:160937
![]() Jul 9 2008, 3:41 am
|
|
How do I add it so the monsters can attack more than just a player
|
![]() Jul 9 2008, 3:42 am
|
|
Show us your proc/code that handles the monsters's attack.
|
Bump(mob/M)
if(istype(M,/mob/player)) Attacks(M) proc/Attacks(mob/M) var/damage = rand(1,str) M.HP-= damage flick("atk",src) M.Death() |
Place your code on the
and tags Now tell me, what do you want to happen when monsters attack doors ? |
I want it so,the doors loose health and die..
Bump(mob/M) |
Bump(mob/M) Mess with it to your needs, I'm pretty sure you don't want a door to die so you have to either: a) Fix your Death() b) Make a separate attack proc just for doors. |