Difference between revisions of "01B4"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|trilogy}} '''SET_PLAYER_CONTROL'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_PLAYER_CONTROL
: Sets control of the player character
+
| description = Sets control of the player character
'''Syntax'''
+
| syntax1    = 01B4: set_player [''player handle''] can_move [''int'']
: 01B4: set_player [''player handle''] can_move [''int'']
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
| p2t        = [''int'']
:: The handle of the player
+
| p2d        = 0 = uncontrollable, {{hint|1|or any value other than 0}} = controllable (default)
: [''int'']
+
| native      = [[SET_PLAYER_CONTROL]]
:: 0 = uncontrollable, {{hint|1|or any value other than 0}} = controllable
+
}}
'''Native analog'''
 
: [[SET_PLAYER_CONTROL]]
 
  
This opcode sets control of the player character. By default, the player character is controllable. Setting the value to 0 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.
+
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==
+
== Keywords ==
 
set, player, freeze, frozen, state, can move, lock
 
set, player, freeze, frozen, state, can move, lock
 
[[Category:OpCodes]]
 

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