s_textUsageSSetLightEnabledOmniDirXDirYDirZ
global · ui
- Address
0x878c00· 122 bytes, up to0x878c79- Type
char[122]- Meaning
- Holds a string that opens "Usage: %s:SetLight(enabled[, omni, dirX, dirY, dirZ, ambIntensity[, ambR, ambG, ambB], dir…"
- Confidence
- verified, proof one
- Finding
- ui/modelanim#setlight-and-getlight
Finding: SetLight and GetLight in ui: Model frames, animation, light and fog
SetLight(enabled[, omni, x, y, z, ambientIntensity[, r, g, b], diffuseIntensity[, r, g, b]]) builds a
light on the stack and copies it over the frame's light only when enabled is nonzero after truncation.
SetLight(0, …) writes nothing and cannot turn a light off, so a PlayerModel's light stays. omni
(index 3) picks point (nonzero) or directional; x, y, z are a position or a direction, normalised.
Each intensity scales its colour; if an intensity is under 2^-22 in size or its three components are not
all numbers, its colour is white and the next intensity is read from the following index. Components are
clamped to [0, 1]. GetLight returns 7, 10 or 13 values.
The derivation is in the doc.