Difference between revisions of "01B4"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
 
| ini        = 01B4=2, %1d%  %2d%
 
| ini        = 01B4=2, %1d%  %2d%
| description = Toggles player movement. 
+
| description = Toggles player movability
 
| p1          = Variable
 
| p1          = Variable
 
| p2          = Boolean value (0/1)  
 
| p2          = Boolean value (0/1)  
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
}}
 
}}
This opcode can enable or disable player movement.  
+
This opcode can be used to lock the player at it's current position.
  
 
==Sanny Builder Example==
 
==Sanny Builder Example==
  
<source lang="scm">01B4: set_player $PLAYER_CHAR can_move 1</source>
+
<source lang="scm">01B4: set_player $PLAYER_CHAR can_move 0    // lock player</source>
  
 
==Keywords==
 
==Keywords==
player, movement, toggle
+
player, movability, toggle

Revision as of 15:53, 7 October 2010

{{{games}}}


Description
Toggles player movability
Syntax
{{{syntax1}}}
Parameter

This opcode can be used to lock the player at it's current position.

Sanny Builder Example

01B4: set_player $PLAYER_CHAR can_move 0    // lock player

Keywords

player, movability, toggle