Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

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

 

Syntax

setSunPosition(x, y, z);

Parameters

ParameterTypeMandatory

Notes

Warzone Version
xNumber(tick)

The x-position of the Sun

Game default: 225.0

3.2
yNumber(tick)

The y-position of the Sun

Game default: -600.0

3.2
zNumber(tick)

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.

Availability 3.2+

Requires:

  • Warzone 3.2 and above
Contents

Jump to:

See also

Related functions:

 

  • No labels