ID:267569
Jul 7 2003, 6:43 pm
|
|
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?
|
Copyright © 2024 BYOND Software.
All rights reserved.
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