M MY Multiplayer: Wiki
Side
Kind

engineGetModelStencil

Client

Gives the stencil value a model is marked with.

int engineGetModelStencil(string|element model)

Parameters

NameTypeDescription
modelstring|elementThe model's name or a model element.

Returns

Two values: the mark (0 when there is none) and whether it is seeThrough.

Example

local value, seeThrough = engineGetModelStencil("kmb_atm1")
if value == 0 then
    engineSetModelStencil("kmb_atm1", 3)
end

See also