ID:139893
 
Code:
        Move()
..()
if(src.loc==/turf/terrain/snow)
src.loc=null
spawn(600)
del(src)


This bullet has a density=0 so dont suggest bump. Anyways, this is soppost to put the bullet's location into null and deletes itself after 60sec if it moves into a /turf/terrain/snow turf. But it doesn't work, anyone have any ideas?

You need to use istype().
In response to Garthor
i tried
var/turf/S
if(istype(S,/turf/terrain/snow))
src.loc=null
spawn(600)
del(src)
but no. the bullet just keeps going and doesn't disappear. Am i doing it right?
In response to XskyflakezX
You have not assigned S a value, so it's null.

There's no need to define another variable here, though, because you already can just use loc.