Scripting/Client/Functions/ToggleDynamicShadows

(v0.4.5) Dynamic shadows: peds, vehicles, objects and the buildings around (street lamps, signs, bins, houses, trees) cast a real shadow of their actual shape on the ground, seen from the sun, instead of the stock round blob under peds and cars. Trees and fences keep their leafy / see-through outline, edges are softened. true switches it on, false off; it is off by default. Follows the game clock (no shadows at night) and the direction of the game own shadows. Players can also switch it with the /sshadow [on|off] chat command. Costs a little frame rate (a few small render targets per frame).

Syntax

ToggleDynamicShadows(bool)

Arguments

Example

function onScriptLoad()
{
	ToggleDynamicShadows( true );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Input

Categories: Client functions | Input