Difference between revisions of "01B4"

From GTAMods Wiki
Jump to navigation Jump to search
(Keywords)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
 
| ini        = 01B4=2, %1d%  %2d%
 
| ini        = 01B4=2, %1d%  %2d%
| description = Enables or disables player movement   
+
| description = Toggles player movement.  
 
| p1          = Variable
 
| p1          = Variable
| p2          = Flag (Integer)  
+
| 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 enable or disable player movement.  
  
==Flags==
+
==Sanny Builder Example==
'''Flag 0''': Disables player movement<br>
+
 
'''Flag 1''': Enables player movement
+
<source lang="scm">01B4: set_player $PLAYER_CHAR can_move 1</source>
  
 
==Keywords==
 
==Keywords==
 
player, movement, toggle
 
player, movement, toggle

Revision as of 15:48, 7 October 2010

{{{games}}}


Description
Toggles player movement.
Syntax
{{{syntax1}}}
Parameter

This opcode can enable or disable player movement.

Sanny Builder Example

01B4: set_player $PLAYER_CHAR can_move 1

Keywords

player, movement, toggle