Player::setStealthMovement: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
This function will disable stealth movement ability (ustually ctrl button)
p1 is usually 0 in the scripts. action is either 0 or a pointer to 'DEFAULT_ACTION'.
p1 is usually 0 in the scripts. action is either 0 or a pointer to 'DEFAULT_ACTION'.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setStealthMovement(p1, action);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.setStealthMovement(p1, action);</syntaxhighlight>
Line 9: Line 12:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
// Disable Stealth Movement
mp.players.local.setStealthMovement(false, '0');
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Latest revision as of 10:40, 1 December 2020

This function will disable stealth movement ability (ustually ctrl button)

p1 is usually 0 in the scripts. action is either 0 or a pointer to 'DEFAULT_ACTION'.

Syntax

player.setStealthMovement(p1, action);

Required Arguments

  • p1: Boolean
  • action: String

Return value

  • Undefined

Example

// Disable Stealth Movement
mp.players.local.setStealthMovement(false, '0');

See also