ID:175441
 
Im Am Using Shadowdarke's RoofLib In My Game And It Works Perfectly Im My Game The Way He Made It,But Instead Of One Type Of Area Disappearing When You Walk Under It I Want ALL Of The Areas To Disappear To Become Invisable And Become Visable When You Walk Out From Under Them, And I Got The Lib To Work I

This Is Part Of The Actual Code That Makes One Type Of Area Disappear When You Walk Under It:

var/COVER_LAYER = 10

area
var
icon/covericon
covericon_state = ""
image/coverimage

Del()
if(coverimage) del(coverimage)
..()

Entered(O)
..()
if(coverimage && ismob(O) && O:client)
O:client.images -= coverimage

Exited(O)
..()
if(coverimage && ismob(O) && O:client)
O:client << coverimage

New()
..()
if(covericon)
coverimage = image(covericon,src,covericon_state,COVER_LAYER)

client
New()
..()
for(var/area/A in world)
if(A.coverimage)
src << A.coverimage
var/area/A = mob.loc
while(A && !istype(A))
A = A.loc

if(A)
A.Entered(mob)

I Am Clueless On How To Get All Of The Areas Invisable Instead Of Just One Type
bump...
In response to ZeroCrash
1. Six hours is nowhere near a long enough time to bump. Wait 24 hours at the VERY LEAST. Somebody will get to your question and answer it. Learn some patience.

2. Don't Type Every Word Starting With A Capital Letter. It Is Extremely Annoying. Thank You.

3. Have you overridden any of those procs (New(), Entered(), etc.) for the other area subtypes? If you have, remember to call the parent proc - ..() - or some bits of that code won't be executed.