ID:148413
 
area
Church
Town
var/image/I

New()
..()
I=new('area.dmi',src,"[name]",10)


mob/proc/see_areas()
for(var/area/A)
usr<<A.I


mob/proc/dont_see_areas()
for(var/area/A)
usr.images.Remove(A.I)//this doesnt work, says undefined var
verbs-=/mob/proc/dont_see_areas

OK so this doesn't work and i dont understand why, i thought all of these were predefined...help?

ETG

No put usr in proc. Ungh.

Lummox JR
In response to Lummox JR
that wasn't why it wasn't working though. BUt yes i know mistake I've heard you say it countless times
In response to Erdrickthegreat2
so heres the snippet

area
blue
red
green
var/image/I
New()
..()
I=new('area images.dmi',src,"[name]")


mob/proc/see_images()
for(var/area/A)
src<<A.I


mob/proc/dont_see_area()
for(var/area/A)
for(var/image/I in src.client.images)
if(I.loc == A.loc)//heres the problem somewhere in this mix
del(I)
verbs-=/mob/proc/dont_see_area

mob/verb/seearea()
src.see_images()
verbs+=/mob/proc/dont_see_area

In this snippet of code, the dont_see_area() proc doesnt work... i mean it works but it doesnt do the job i wanted it for. It doesnt delete the image/I off my screen.

can anyone help?

ETG
In response to Erdrickthegreat2
Areas don't have locs. Or rather, their loc is world, I believe. You want just A, not A.loc. But, I'm not sure if that will even work, but you can try.
In response to Erdrickthegreat2
Try this:
area
blue
red
green
var/image/I
New()
..()
I=new('area images.dmi',src,"[name]")


mob/proc/see_images()
for(var/area/A)
src<<A.I


mob/proc/dont_see_area()
var/client/C
if(src.client)
C = src.client
else
world.log << "ERROR: dont_see_area() called for mob without client"
return
for(var/area/A)
C.images -= A.I
verbs-=/mob/proc/dont_see_area

mob/verb/seearea()
src.see_images()
verbs+=/mob/proc/dont_see_area


Untested, but worth a shot :)
In response to Garthor
actually i figured it out by referencing blue book, i should of looked there first.

mob/proc/dont_see_areas()
for(var/area/A)
del A.I//god simple enough
verbs-=/mob/proc/dont_see_areas

thanx anyway guys =)

ETG