setWorldProperty | Multi Theft Auto: Wiki Skip to content

setWorldProperty

Client-side
Server-side
Shared

Pair: getWorldProperty

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


The downside of overriding is the need to implement custom blending (to change weather properties over time creating night / day cycle).

Note

This function only adds remaining time cycle properties. You need to use existing world functions to override other properties (like sun color).

Tip

This function can be used to implement custom time cycles and other advanced weather features. It allows you to override values set by the game for weathers (timecyc.dat). The downside of overriding is the need to implement custom blending (to change weather properties over time creating night / day cycle).

Tip

Test resource: worldprops.zip

Syntax

setWorldProperty ( )

Code Examples

client

This example makes volumetric shadows darker:

setWorldProperty("ShadowStrength", 500)

See Also

World Functions