Difference between revisions of "01B4"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 01B4=2, %1d% %2d% | description = Enables or disables player movement | p1 = Variable | p2 = Flag (Integer) | game = [[GTA 3…')
 
m
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 01B4=2, %1d%  %2d%
+
| games      = {{Icon|t}}
| description = Enables or disables player movement 
+
| command    = SET_PLAYER_CONTROL
| p1          = Variable
+
| description = Sets control of the player character
| p2          = Flag (Integer)
+
| syntax1    = 01B4: set_player [''player handle''] can_move [''int'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| p1t        = [''player handle'']
 +
| p1d        = The [[0053|handle of the player]]
 +
| p2t        = [''int'']
 +
| p2d        = 0 = uncontrollable, {{hint|1|or any value other than 0}} = controllable (default)
 +
| native      = [[SET_PLAYER_CONTROL]]
 
}}
 
}}
This opcode can enable or disable player movement.
 
  
==Flags==
+
This opcode sets control of the player character. Switching off control will prevent any inputs from having an effect on the player character and the camera that follows the player character. Many effects in the environment occur while the character is frozen, including extinguishing all fires, all pedestrians ignoring the player, and instantly stopping the player vehicle if the player is driving.
'''Flag 0''': Disables player movement<br>
 
'''Flag 1''': Enables player movement
 
  
==Keywords==
+
== Keywords ==
player, movement
+
set, player, freeze, frozen, state, can move, lock

Latest revision as of 06:56, 8 July 2017

GTA III Vice City San Andreas SET_PLAYER_CONTROL


Description
Sets control of the player character
Syntax
01B4: set_player [player handle] can_move [int]
Parameter
[player handle]
The handle of the player
[int]
0 = uncontrollable, 1 = controllable (default)
Native analog
SET_PLAYER_CONTROL

This opcode sets control of the player character. Switching off control will prevent any inputs from having an effect on the player character and the camera that follows the player character. Many effects in the environment occur while the character is frozen, including extinguishing all fires, all pedestrians ignoring the player, and instantly stopping the player vehicle if the player is driving.

Keywords

set, player, freeze, frozen, state, can move, lock