ID:779743
 
(See the best response by Kumorii.)
how to make the player be above all mobs, such as ghost that can share the same square. how to make the ghost display behind the player or any mob behind the main player? background layer is not working for me. i am using isometric view

I would sugges teleporting the Ghost
Mob/proc/TeleportGhost(mob/M in world)
var/mob/Ghost=new/obj/G// or w.e
Ghost.loc=locate(M.x-1,M.y,M.z)//Teleports Ghost 1 Space under selected person

ofcourse This is just and example i cane up with quickly fro my Iphone but it's for you to get the point of it
i really don't need to teleport the ghost. i only need the ghost to walk behind the player. i would like the player to display above all mobs and objs
Best response
Have you tried changing the layer of the ghost to MOB_LAYER-1?
I think that's what you're looking for.
Try
Obj/Ghost
icon='you icon.dmi'
icon_state="If There is one"
MOB-LAYER-1

and when you want to add it to the player
src.overlays+=/obj/Ghost
//or if you need it under the Player
src.underlays+=/obj/Ghost

Make sure you lr adding it to the player in the right spot