setSunPosition()

(info) Other great resources: Official JS API docs, Scripting Forum

setSunPosition()

Set the position of the Sun, which affects shadows on the map...

 

Syntax

setSunPosition(x, y, z);

Parameters

Parameter

Type

Mandatory

Notes

Warzone Version

Parameter

Type

Mandatory

Notes

Warzone Version

x

Number

The x-position of the Sun

Game default: 225.0

3.2

y

Number

The y-position of the Sun

Game default: -600.0

3.2

z

Number

The z-position (height) of the Sun

Game default: 450.0

3.2

Return values

Unknown at present

Example

Waiting to learn more about the parameters before proving an example.