Player::setControl: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
Flags used in the scripts: 0,4,16,24,32,56,60,64,128,134,256,260,384,512,640,768,896,900,952,1024,1280,2048,2560<br><br>Note to people who needs this with camera mods, etc.: <br>Flags(0, 4, 16, 24, 32, 56, 60, 64, 128, 134, 512, 640, 1024, 2048, 2560)<br>- Disables camera rotation as well.<br>Flags(256, 260, 384, 768, 896, 900, 952, 1280)<br>- Allows camera rotation.
Flags used in the scripts: 0,4,16,24,32,56,60,64,128,134,256,260,384,512,640,768,896,900,952,1024,1280,2048,2560<br><br>Note to people who needs this with camera mods, etc.: <br>Flags(0, 4, 16, 24, 32, 56, 60, 64, 128, 134, 512, 640, 1024, 2048, 2560)<br>- Disables camera rotation as well.<br>Flags(256, 260, 384, 768, 896, 900, 952, 1280)<br>- Allows camera rotation.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setControl(toggle, possiblyFlags);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setControl(toggle, possiblyFlags);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean

Latest revision as of 11:15, 23 June 2020

Flags used in the scripts: 0,4,16,24,32,56,60,64,128,134,256,260,384,512,640,768,896,900,952,1024,1280,2048,2560

Note to people who needs this with camera mods, etc.:
Flags(0, 4, 16, 24, 32, 56, 60, 64, 128, 134, 512, 640, 1024, 2048, 2560)
- Disables camera rotation as well.
Flags(256, 260, 384, 768, 896, 900, 952, 1280)
- Allows camera rotation.

Syntax

mp.game.player.setControl(toggle, possiblyFlags);

Required Arguments

  • toggle: Boolean
  • possiblyFlags: int

Return value

  • Undefined

Example

// todo

See also