Difference between revisions of "0392"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
{{I|Create a more detailed example}}
 
{{OpCode
 
{{OpCode
 
| ini        = 0392=2, %1d%  %2d%
 
| ini        = 0392=2, %1d%  %2d%
| description = Makes an object movable or unmovable.
+
| description = Toggles an objects movability
| p1          = Variable
+
| p1          = Existing object handle
| p2          = Flag (Integer)  
+
| p2          = Boolean value (0/1)
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]],
+
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
 
}}
 
}}
 
This opcode makes an object movable or unmovable.  
 
This opcode makes an object movable or unmovable.  
  
==Flags==
+
== Sanny Builder example ==
'''Flag 0''': Unmovable (off)<br>
+
 
'''Flag 1''': Movable (on)
+
<source lang="scm">0392: make_object $OBJECT moveable 1</source>
  
 
==Keywords==
 
==Keywords==
 
object, movable, toggle
 
object, movable, toggle
 +
 +
{{N|SA|VC}}
 +
[[Category:GTA_3]]

Revision as of 14:23, 7 October 2010

{{{games}}}


Description
Toggles an objects movability
Syntax
{{{syntax1}}}
Parameter

This opcode makes an object movable or unmovable.

Sanny Builder example

0392: make_object $OBJECT moveable 1

Keywords

object, movable, toggle