obj
energy_coat
layer=EFFECTS_LAYER + MOB_LAYER
alpha=150
density=0
New(mob/o)
if(!o)
return
appearance=o.appearance
icon_state=""
pixel_x=0
pixel_y=0
pixel_z=0
invisibility=2
icon-=rgb(255,255,255)
icon+=SKY_BLUE
alpha=150
Owner=o
o.overlays+=src
Problem description:
Wanted to create an effect where an overlay is invisible at most times during gameplay, however, under special conditions it can be seen by a player. The invisibility var seems to be reset or rendered ineffective when the overlay is added, resulting in the overlay being visible.