Water::setWavesIntensity: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Sets a value that determines how aggressive the ocean waves will be. Values of 2.0 or more make for very aggressive waves like you see during a thunderstorm.<br><br>Works only ~200 meters around the player.<br><br>Most likely SET_CURRENT_*
Sets a value that determines how aggressive the ocean waves will be. Values of 2.0 or more make for very aggressive waves like you see during a thunderstorm.<br><br>Works only ~200 meters around the player.<br><br>Most likely SET_CURRENT_*
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">water.setWavesIntensity(intensity);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.water.setWavesIntensity(intensity);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''intensity:''' float
*'''intensity:''' float
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Water_function_c}}
{{Water_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:35, 6 May 2017

Sets a value that determines how aggressive the ocean waves will be. Values of 2.0 or more make for very aggressive waves like you see during a thunderstorm.

Works only ~200 meters around the player.

Most likely SET_CURRENT_*

Syntax

mp.game.water.setWavesIntensity(intensity);

Required Arguments

  • intensity: float

Return value

  • Undefined

Example

// todo

See also

Template:Water s function c