Difference between revisions of "ATTACH CAR TO CAR"

From GTAMods Wiki
Jump to navigation Jump to search
(Fixed some param's)
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=Relative 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 2 Vehicles together. Rotation are in radians. If the 'Relative offsets' boolean is true the offsets are relative otherwise they are Absolute (to the world).
  
 
{{Incomplete}}
 
{{Incomplete}}

Revision as of 16:24, 16 September 2009

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

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

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