# Set Lighting For Player

Grammar — Set lighting for player p to light, blending over blendTime seconds
FlagsNative | Action

Changes the lighting on the map for the requested player.

# Arguments

  • int — Player
  • string<gamelink::Light> — Light
  • fixed — Blend Time

Returns — void

native void PlayerSetLighting(
	int inPlayer,
	string inLight,
	fixed inBlendTime,
);

Category: Environment / Lighting

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8273


            libGame_gv_stormMapLightingCurrent[lv_itPlayer] = lp_lighting;
            PlayerSetLighting(lv_itPlayer, lp_lighting, lp_blendtime);
        }