Difference between revisions of "01B4"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}}
| ini        = 01B4=2, %1d%  %2d%
+
<hr />
| description = Toggles player movability
+
'''Description'''
| p1          = Variable
+
: Sets control of the player character
| p2          = Boolean value (0/1)
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 01B4: set_player [''player handle''] can_move [''int'']
}}
+
'''Parameter'''
This opcode can be used to lock the player at it's current position.
+
: [''player handle'']
 +
:: The handle of the player
 +
: [''int'']
 +
:: 0 = uncontrollable, {{hint|1|or any value other than 0}} = controllable
 +
'''Native analog'''
 +
: [[SET_PLAYER_CONTROL]]
  
==Sanny Builder Example==
+
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.
 
 
<source lang="scm">01B4: set_player $PLAYER_CHAR can_move 0   // lock player</source>
 
  
 
==Keywords==
 
==Keywords==
player, movability, toggle
+
set, player, freeze, frozen, state, can move, lock

Revision as of 22:25, 20 December 2011

GTA III Vice City San Andreas


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

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.

Keywords

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