ID:268179
 
How would you make something appear above your icon? Like a rock appearing right above you?

Non-PC
use the layer var (example: layer = MOB_LAYER+10)
In response to RVegeta
RVegeta wrote:
use the layer var (example: layer = MOB_LAYER+10)

This doesn't work.

layer = 'rock.dmi'
layer = MOB_LAYER+10


When I run the game, nothing happens when I click the verb.

Non-PC
In response to Non-PC
mob
verb
Rocky_V()
var/obj/O=new /obj/rock
usr.overlays+=O

should work :-)
In response to Non-PC
thats not how you use layer, layer is a numberical value, the higher it is, the higher the obj will be, so something with layer 12 will be on top of something with layer 10 if there in the same square
In response to FranquiBoy
The rock doesn't appear above me when I press the verb:

        rock(mob/M in oview())
var/obj/o = new/obj/rock(locate(MOB_LAYER+99))


Thanks!

Non-PC
In response to RVegeta
RVegeta wrote:
use the layer var (example: layer = MOB_LAYER+10)

You're not that specific.
In response to SSJ4_Gohan_Majin
I know this is difficult to solve, but I know people on the forum can help me with this. Thanks!

Non-PC
In response to Non-PC
Non-PC wrote:
<s>I know this is difficult to solve but</s> I know people on the forum can help me with this. Thanks!

Non-PC

:P