setWorldProperty | Multi Theft Auto: Wiki Skip to content

setWorldProperty

Client-side
Server-side
Shared

Pair: getWorldProperty

Manual Review Required

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

bool setWorldProperty ( string property, var value, var value, var value )
Required Arguments
  • property: The property you wish to override.
  • value: MISSING_PARAM_DESC
  • value: MISSING_PARAM_DESC
  • value: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if successful, false otherwise.

Code Examples

shared

This example makes volumetric shadows darker:

setWorldProperty("ShadowStrength", 500)

See Also

World Functions