obj
proc
objGravity()
var/turf/aturf = locate(src.x, src.y-1, src.z) // Get the turf directly below you.
var/dense = 0
if(aturf)
for(var/atom/A in aturf)
if(A.density == 1)
dense = 1
if(dense == 0)
src.loc = locate(src.x, src.y-1, src.z)
objGravity()
else
return
i dont know where to call it
i figure it dont belong under obj, but everywhere else it gives me errors. I think i need to call it in the block spawning proc somewhere:
proc
BlockSpawn()
for(var/i = 1; i <= 300; i++)
var/x_level = rand(1,17)
new/obj/blocks/red(locate(x_level,17,1))
sleep(10)
but i dont know where. Uhh yeah thats about it and so.... please help me!
Obviously, you could just call walk. THe following extension of the original proc might work too though:
Not sure why you wouldn't just call walk() though. I hope this helps :)