Category: Objects
Since engine version: 7.0 OC
SetLightColor
Description
Sets the color of the light that is emitted from this object. By default the object emits white light, if it has a light range. See SetLightRange for further details.
Syntax
void SetLightColor(int color);
Parameter
- color:
Example
var candle_shine=CreateObject(EnvPack_Candle_Shine); candle_shine->SetLightRange(30, 20); candle_shine->SetLightColor(RGB(255,163,58));
Gives a warm shine to a candle shine object.
See also: GetLightColor, SetLightRange