World::weather: Difference between revisions

From RAGE Multiplayer Wiki
(formatted text)
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:


==Setter==
==Setter==
* '''<span style="color:#008017">String</span> - [[Weather]]'''
* '''<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==
==References==
[[Category:Weather API]]
{{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