obj/Roof
appearance_flags =KEEP_TOGETHER
layer=MOB_LAYER+1
icon = 'stssf.dmi'
density = 0
New()
..()
for(var/turf/v in view(1))
v.vis_contents += new src.type
world<<"sucess"
del(src)
Cross()
Hide()
return 1
Uncross()
Show()
return 1
proc
Hide()
world<<"hide"
for(var/obj/v in range(5))
animate(v, alpha = 0, time = 5)
Show()
for(var/obj/v in range(5))
animate(v, alpha = 255, time = 5)
Problem description:Hello, I'm trying to make house Roofs with vis_contents but it's not working the way that I was thinking. It's not adding to the turf vis contents the obj type. What I can do?
http://www.byond.com/developer/Ter13/RoofLib
This lib may help you.