World::weather: Difference between revisions
m (Rt-2 moved page Environment::weather to World::weather) |
(formatted text) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
This property gets/sets game weather. | This property gets/sets game weather. | ||
==Getter== | ==Getter== | ||
* '''<span style="color:#008017">String</span> - [[Weather]]''' | * '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]''' | ||
==Setter== | ==Setter== | ||
* '''<span style="color:#008017">String</span> - [[Weather]]''' | * '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]''' | ||
==Example== | ==Example== | ||
< | <syntaxhighlight lang="javascript"> | ||
mp. | var weather = mp.world.weather; // GETTER | ||
</ | |||
mp.world.weather = 'CLEAR'; // SETTER | |||
</syntaxhighlight > | |||
==References== | ==References== | ||
{{World_definition}} | |||
Latest revision as of 15:50, 29 January 2018
This property gets/sets game weather.
Getter
- String - Weather ID
Setter
- String - Weather ID
Example
var weather = mp.world.weather; // GETTER
mp.world.weather = 'CLEAR'; // SETTER