ID:155950
 
pumpkin

mob
proc
mainscene1()
src.map = SwapMaps_CreateFromTemplate("Maps/field") //load the scene map
src.mapvisuals(src.map)//only they can see it


mob
var/tmp/list/viewable=list()//turf they are allowed to view
proc
mapvisuals(map)
var/swapmap/umap=map
var/buildable/T///buildable/t stuff
var/mob/M//the people on map
for(T in umap)
src.viewable+=T//they can view these turfs

sleep(1)
for(M in src.z)
M.goview()//update all the mobs views

goview()
var/buildable/T///buildable/t stuff
for(T in src.z)//their z level
if(!T in src.viewable)//not meant to see it
var/image/black_overlay = image('blackoverlay.dmi',T)
src.client.images += black_overlay


/buildable/t has a parent type of /obj

Problem
I am trying to make a proc that controlls what players can and cant see when they are teleported to small maps as shown in the picture above. The code ive given is to show the best i could come up with yet it doesnt give results.
Can you describe what you're actually trying to achieve? The code you've supplied is vague, and your problem description is even vaguer.
In response to ANiChowy
edited post.
bump..