Перейти к содержанию

Player::setPlayerControl

Материал из RAGE MP Wiki Archive
Версия от 21:30, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.player.setPlayerControl(togglepossiblyFlags);</syntaxhighlight>

Required Arguments

  • toggle: Boolean
  • possiblyFlags: int

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also