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
| Name | Type | Description |
|---|---|---|
| name | string | The 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)