Difference between revisions of "029B"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 5: Line 5:
 
| description = Creates an object without offset at the coordinates point
 
| description = Creates an object without offset at the coordinates point
 
| syntax1    = 029B: [''var''] = init_object [''int''] at [''flt1''] [''flt2''] [''flt3'']
 
| syntax1    = 029B: [''var''] = init_object [''int''] at [''flt1''] [''flt2''] [''flt3'']
| p1t        = [''var'']
+
| p1t        = [''int'']
| p1d         = Variable to store the handle of the object
+
| p1d        = Model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
| p2t        = [''int'']
+
| p2t         = [''flt1'']
| p2d         = Model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
+
| p2d         = X-coordinate
| p3t         = [''flt1'']
+
| p3t         = [''flt2'']
| p3d         = X-coordinate
+
| p3d         = Y-coordinate
| p4t         = [''flt2'']
+
| p4t         = [''flt3'']
| p4d         = Y-coordinate
+
| p4d         = Z-coordinate (or ≤''-100.0'' for [[02CE|ground z]])
| p5t         = [''flt3'']
+
| p5t        = [''var'']
| p5d         = Z-coordinate (or ≤''-100.0'' for [[02CE|ground z]])
+
| p5d        = Variable to store the handle of the object
 
}}
 
}}
  

Latest revision as of 00:24, 20 November 2016

The left bus sign was created using 0107 while the right was created using 029B, both at ground z.

GTA III Vice City San Andreas CREATE_OBJECT_NO_OFFSET


Description
Creates an object without offset at the coordinates point
Syntax
029B: [var] = init_object [int] at [flt1] [flt2] [flt3]
Parameter
[int]
Model ID number as defined in the IDE file; also acceptable is model's DFF name with a hash character
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z)
[var]
Variable to store the handle of the object

This opcode behaves similarly to opcode 0107 except the z-coordinate uses the center rather than the base of the object's bounding box.

Keywords

init, create, spawn, object, model, no offset

See also

  • GTA III Vice City San Andreas 0107, creates an object with offset