Gameplay::setWindSpeed: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Using this native will clamp the wind speed value to a range of 0.0- 12.0. Using SET_WIND sets the same value but without the restriction. | Using this native will clamp the wind speed value to a range of 0.0- 12.0. Using SET_WIND sets the same value but without the restriction. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.setWindSpeed(speed);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.setWindSpeed(speed);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''speed:''' float | *'''speed:''' float | ||
| 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:13, 6 May 2017
Using this native will clamp the wind speed value to a range of 0.0- 12.0. Using SET_WIND sets the same value but without the restriction.
Syntax
mp.game.gameplay.setWindSpeed(speed);
Required Arguments
- speed: float
Return value
- Undefined
Example
// todo