undertile
![code/datums/elements/undertile.dm 2](git.png)
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
![code/datums/elements/undertile.dm 9](git.png)
level of invisibility applied when under a tile. Could be INVISIBILITY_OBSERVER if you still want it to be visible to ghosts
invisibility_trait
![code/datums/elements/undertile.dm 7](git.png)
the invisiblity trait applied, like TRAIT_T_RAY_VISIBLE
tile_overlay
![code/datums/elements/undertile.dm 11](git.png)
an overlay for the tile if we wish to apply that
use_alpha
![code/datums/elements/undertile.dm 13](git.png)
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
![code/datums/elements/undertile.dm 17](git.png)
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