Difference between revisions of "ATTACH CAR TO CAR"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=9 |p1t=integer |p1d=Vehicle Id 1 |p2t=integer |p2d=Vehicle Id 2 |p3t=bool |p3d=Unknown |p4t=float |p4d=X Offset |p5t=float |p5d=Y Offset |p6t=float |p6d=Z Offset |p7t=float |p...)
 
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|np=9
 
|np=9
 
|p1t=integer
 
|p1t=integer
|p1d=Vehicle Id 1
+
|p1d=Vehicle Child
 
|p2t=integer
 
|p2t=integer
|p2d=Vehicle Id 2
+
|p2d=Vehicle Parent
 
|p3t=bool
 
|p3t=bool
|p3d=Unknown
+
|p3d=Absolute offsets
 
|p4t=float
 
|p4t=float
 
|p4d=X Offset
 
|p4d=X Offset
Line 14: Line 14:
 
|p6d=Z Offset
 
|p6d=Z Offset
 
|p7t=float
 
|p7t=float
|p7d=X Offset 2
+
|p7d=X Rotation
 
|p8t=float
 
|p8t=float
|p8d=Y Offset 2
+
|p8d=Y Rotation
 
|p9t=float
 
|p9t=float
|p9d=Z Offset 2
+
|p9d=Z Rotation
 
|r=0
 
|r=0
 
}}
 
}}
  
Attaches 2 Vehicles together.
+
Attaches two Vehicles together. Rotation are in radians. If the 'Absolute offsets' boolean is true the offsets are absolute (to the world) otherwise they are relative (to the vehicle).
 +
 
 +
{{Incomplete}}

Latest revision as of 14:20, 20 November 2011

ATTACH_CAR_TO_CAR
Number of parameters: 9
Parameter #TypeDescription
1.integerVehicle Child
2.integerVehicle Parent
3.boolAbsolute offsets
4.floatX Offset
5.floatY Offset
6.floatZ Offset
7.floatX Rotation
8.floatY Rotation
9.floatZ Rotation
Return value:
TypeDescription
None

Attaches two Vehicles together. Rotation are in radians. If the 'Absolute offsets' boolean is true the offsets are absolute (to the world) otherwise they are relative (to the vehicle).

This section is incomplete. You can help by fixing and expanding it.