Player::setSwimMultiplierForPlayer: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(bad function name)
 
Line 1: Line 1:
Swim speed multiplier.<br>Multiplier goes up to 1.49<br><br>Just call it one time, it is not required to be called once every tick. - Note copied from below native.<br><br>Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and RUN_SPRINT below. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it's 1.49 max default.
Swim speed multiplier.<br>Multiplier goes up to 1.49<br><br>Just call it one time, it is not required to be called once every tick. - Note copied from below native.<br><br>Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and RUN_SPRINT below. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it's 1.49 max default.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.player.setSwimMultiplierForPlayer(multiplier);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setSwimMultiplierFor(multiplier);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''multiplier:''' float
*'''multiplier:''' float

Latest revision as of 18:23, 11 November 2021

Swim speed multiplier.
Multiplier goes up to 1.49

Just call it one time, it is not required to be called once every tick. - Note copied from below native.

Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and RUN_SPRINT below. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it's 1.49 max default.

Syntax

mp.game.player.setSwimMultiplierFor(multiplier);

Required Arguments

  • multiplier: float

Return value

  • Undefined

Example

// todo

See also