# Set Lighting For Player
Grammar — Set lighting for player p to light, blending over blendTime seconds
Flags —Native
|Action
Changes the lighting on the map for the requested player.
# Arguments
int
— Playerstring
<gamelink::Light> — Lightfixed
— Blend Time
Returns — void
native void PlayerSetLighting(
int inPlayer,
string inLight,
fixed inBlendTime,
);
# Related
Category: Environment / Lighting
- Game Day/Night State Change —
void
— TriggerAddEventGameTimeEvent - Set Lighting —
void
— GameSetLighting - Set Lighting For Player —
void
— PlayerSetLighting - Set Time Of Day —
void
— GameTimeOfDaySet - Set Time Of Day (Seconds) —
void
— GameTimeOfDayValueSet - Set Time Of Day (Hours, Minutes, Seconds) —
void
— GameTimeOfDayTimeValueSet - Set Time of Day Lighting —
void
— GameSetToDLighting - Set Time of Day Lighting For Player —
void
— PlayerSetToDLighting - Set Day Length —
void
— GameTimeOfDaySetLength - Pause/Unpause Time Of Day —
void
— GameTimeOfDayPause - Triggering Day/Night State —
int
<preset::DayNightEventType> — EventGameTimeEvent - Current Time Of Day —
string
<timeofday> — GameTimeOfDayGet - Current Time Of Day (Seconds) —
int
— GameTimeOfDayValueGet - Current Day/Night State —
int
<preset::DayNightEventType> — GameTimeOfDayCurrentTimeEvent - Day Length —
fixed
— GameTimeOfDayGetLength - Time Of Day Is Paused —
bool
— GameTimeOfDayIsPaused
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:8273
libGame_gv_stormMapLightingCurrent[lv_itPlayer] = lp_lighting;
PlayerSetLighting(lv_itPlayer, lp_lighting, lp_blendtime);
}