Gameplay::setWeatherTypeNow: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
The following weatherTypes are used in the scripts:<br>'CLEAR'<br>'EXTRASUNNY'<br>'CLOUDS'<br>'OVERCAST'<br>'RAIN'<br>'CLEARING'<br>'THUNDER'<br>'SMOG'<br>'FOGGY'<br>'XMAS'<br>'SNOWLIGHT'<br>'BLIZZARD' | The following weatherTypes are used in the scripts:<br>'CLEAR'<br>'EXTRASUNNY'<br>'CLOUDS'<br>'OVERCAST'<br>'RAIN'<br>'CLEARING'<br>'THUNDER'<br>'SMOG'<br>'FOGGY'<br>'XMAS'<br>'SNOWLIGHT'<br>'BLIZZARD' | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.setWeatherTypeNow(weatherType);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.setWeatherTypeNow(weatherType);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''weatherType:''' String | *'''weatherType:''' String | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:06, 6 May 2017
The following weatherTypes are used in the scripts:
'CLEAR'
'EXTRASUNNY'
'CLOUDS'
'OVERCAST'
'RAIN'
'CLEARING'
'THUNDER'
'SMOG'
'FOGGY'
'XMAS'
'SNOWLIGHT'
'BLIZZARD'
Syntax
mp.game.gameplay.setWeatherTypeNow(weatherType);
Required Arguments
- weatherType: String
Return value
- Undefined
Example
// todo