ID:267569
 
I want to make a boulder, so that when it Bump()'s into a mob, it will give them damage but still keep walking...how do I go about doing this?
mob
boulder
Bump(atom/Obstacle)
if(ismob(Obstacle))
var/mob/M = Obstacle
if(M.client)
M.health -= rand(1,4)
src.loc = M.loc
walk(src,src.dir,2)
else
del(Obstacle)

Something like that