Difference between revisions of "029B"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[File:0107 029B.jpg|thumb|300px|The left bus sign was created using 0107 while the right was created using 029B, both at ground z.]]
 
[[File:0107 029B.jpg|thumb|300px|The left bus sign was created using 0107 while the right was created using 029B, both at ground z.]]
{{Icon|trilogy}} '''CREATE_<wbr>OBJECT_<wbr>NO_<wbr>OFFSET'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = CREATE_<wbr>OBJECT_<wbr>NO_<wbr>OFFSET
: Creates an object without offset at the coordinates point
+
| description = Creates an object without offset at the coordinates point
'''Syntax'''
+
| syntax1    = 029B: [''var''] = init_object [''int''] at [''flt1''] [''flt2''] [''flt3'']
: 029B: [''var''] = init_object [''int''] at [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
: [''var'']
+
| p2t        = [''flt1'']
:: Variable to store the handle of the object
+
| p2d        = X-coordinate
: [''int'']
+
| p3t        = [''flt2'']
:: Model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
+
| p3d        = Y-coordinate
: [''flt1'']
+
| p4t        = [''flt3'']
:: X-coordinate
+
| p4d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]])
: [''flt2'']
+
| p5t        = [''var'']
:: Y-coordinate
+
| p5d        = Variable to store the handle of the object
: [''flt3'']
+
}}
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]])
 
  
 
This opcode behaves similarly to opcode [[0107]] except the z-coordinate uses the center rather than the base of the object's bounding box.
 
This opcode behaves similarly to opcode [[0107]] except the z-coordinate uses the center rather than the base of the object's bounding box.
Line 25: Line 24:
 
== See also ==
 
== See also ==
 
* {{Icon|t}} [[0107]], creates an object with offset
 
* {{Icon|t}} [[0107]], creates an object with offset
 
[[Category:OpCodes]]
 

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