M MY Multiplayer: Wiki
Side
Kind

engineResetShaderGlobal

Client

Drops the value this resource gave a shader global, so the global goes back to the next one's value.

bool engineResetShaderGlobal(string name)

Parameters

NameTypeDescription
namestringThe global's name.

Returns

true if this resource had a value in that global, false if not.

Example

engineSetShaderGlobal("alarmPulse", 1, 5)

setTimer(function()
    engineResetShaderGlobal("alarmPulse")
end, 10000, 1)

See also