Difference between revisions of "0939"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
<code>0939=8,%1d% %2d% %3d% %4d% %5d% %6d% %7d% %8d% </code><br>
+
{{OpCode
'''Description''': Attaches a vehicle to an object<br>
+
| games      = {{Icon|SA}}
'''Supports''': San Andreas<br>
+
| command    = ATTACH_CAR_TO_OBJECT
 +
| description = Attaches the vehicle to the object
 +
| syntax1    = 0939: attach_car [''car handle''] to_object [''object handle''] with_offset [''flt1''] [''flt2''] [''flt3''] rotation [''flt4''] [''flt5''] [''flt6'']
 +
| p1t        = [''car handle'']
 +
| p1d        = The handle of the vehicle
 +
| p2t        = [''object handle'']
 +
| p2d        = The handle of the object
 +
| p3t        = [''flt1'']
 +
| p3d        = X-offset relative to the center of the object
 +
| p4t        = [''flt2'']
 +
| p4d        = Y-offset relative to the center of the object
 +
| p5t        = [''flt3'']
 +
| p5d        = Z-offset relative to the center of the object
 +
| p6t        = [''flt4'']
 +
| p6d        = X-rotation
 +
| p7t        = [''flt5'']
 +
| p7d        = Y-rotation
 +
| p8t        = [''flt6'']
 +
| p8d        = Z-rotation
 +
}}
  
==Keywords==
+
== Keywords ==
 
attach, car, vehicle, object
 
attach, car, vehicle, object
 
[[Category:OpCodes]]
 

Latest revision as of 23:29, 18 June 2016

San Andreas ATTACH_CAR_TO_OBJECT


Description
Attaches the vehicle to the object
Syntax
0939: attach_car [car handle] to_object [object handle] with_offset [flt1] [flt2] [flt3] rotation [flt4] [flt5] [flt6]
Parameter
[car handle]
The handle of the vehicle
[object handle]
The handle of the object
[flt1]
X-offset relative to the center of the object
[flt2]
Y-offset relative to the center of the object
[flt3]
Z-offset relative to the center of the object
[flt4]
X-rotation
[flt5]
Y-rotation
[flt6]
Z-rotation

Keywords

attach, car, vehicle, object