/datum/element/undertile
Add to an object if you want to be able to be hidden under tiles
Vars | |
invisibility_level | level of invisibility applied when under a tile. Could be INVISIBILITY_OBSERVER if you still want it to be visible to ghosts |
---|---|
invisibility_trait | the invisiblity trait applied, like TRAIT_T_RAY_VISIBLE |
tile_overlay | an overlay for the tile if we wish to apply that |
use_alpha | whether we use alpha or not. TRUE uses ALPHA_UNDERTILE because otherwise we have 200 different instances of this element for different alphas |
use_anchor | We will switch between anchored and unanchored. for stuff like satchels that shouldnt be pullable under tiles but are otherwise unanchored |
Procs | |
hide | called when a tile has been covered or uncovered |
Var Details
invisibility_level
level of invisibility applied when under a tile. Could be INVISIBILITY_OBSERVER if you still want it to be visible to ghosts
invisibility_trait
the invisiblity trait applied, like TRAIT_T_RAY_VISIBLE
tile_overlay
an overlay for the tile if we wish to apply that
use_alpha
whether we use alpha or not. TRUE uses ALPHA_UNDERTILE because otherwise we have 200 different instances of this element for different alphas
use_anchor
We will switch between anchored and unanchored. for stuff like satchels that shouldnt be pullable under tiles but are otherwise unanchored
Proc Details
hide
called when a tile has been covered or uncovered