Player::setRunSprintMultiplierFor: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Multiplier goes up to 1.49 any value above will be completely overruled by the game and the multiplier will not take effect, this can be edited in memory however.<br><br>Just call it one time, it is not required to be called once every tick.<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 SWIM above. 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.
{{ClientsideJsFunction}}
 
== Description ==
Changes the speed a player runs with.
Multiplier goes up to 1.49 (looks like Sonic) any value above will be completely overruled by the game and the multiplier will not take effect, this can be edited in memory however.<br><br>Just call it one time, it is not required to be called once every tick.<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 SWIM above. 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">player.setRunSprintMultiplierFor(multiplier);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setRunSprintMultiplierFor(multiplier);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''multiplier:''' float
*'''multiplier:''' float
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Latest revision as of 12:32, 21 December 2018

Client-Side
Function

 JavaScript



Description

Changes the speed a player runs with. Multiplier goes up to 1.49 (looks like Sonic) any value above will be completely overruled by the game and the multiplier will not take effect, this can be edited in memory however.

Just call it one time, it is not required to be called once every tick.

Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and SWIM above. 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.setRunSprintMultiplierFor(multiplier);

Required Arguments

  • multiplier: float

Return value

  • Undefined

Example

// todo

See also