World::weather: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property gets/sets game weather. <br/> '''Note: this property is read-only.''' ==Example== <source lang="javascript"> mp.environment.weather = 'HALLOWEEN'; </source>")
 
(formatted text)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
This property gets/sets game weather.
This property gets/sets game weather.
<br/>
 
'''Note: this property is read-only.'''
==Getter==
* '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]'''
 
==Setter==
* '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]'''


==Example==
==Example==
<source lang="javascript">
<syntaxhighlight lang="javascript">
mp.environment.weather = 'HALLOWEEN';
var weather = mp.world.weather; // GETTER
</source>
 
mp.world.weather = 'CLEAR'; // SETTER
</syntaxhighlight >
 
==References==
{{World_definition}}

Latest revision as of 15:50, 29 January 2018

This property gets/sets game weather.

Getter

Setter

Example

var weather = mp.world.weather; // GETTER

mp.world.weather = 'CLEAR'; // SETTER

References