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

Player::setControl

Материал из RAGE MP Wiki Archive
Версия от 11:15, 23 июня 2020; imported>CocaColaBear
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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.setControl(toggle, possiblyFlags);</syntaxhighlight>

Required Arguments

  • toggle: Boolean
  • possiblyFlags: int

Return value

  • Undefined

Example

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

See also