If I shoot a bullet, I want it to check if it is a mob, if it is it does M.HP -= 1 but if its just a turf it deleteds itself.
obj/Bullet
icon = 'Misc.dmi'
icon_state = "shot"
var/inair = 0
Bump()
ID:172143
Jun 23 2004, 5:07 pm
|
|
In the above it will also delete the bullet if it hits anything dense that is not a mob.
To change what happens to different things look up the following in the reference (or hit F1 in DreamMaker).
ismob()
isobj()
isturf()
istype()