Difference between revisions of "ATTACH OBJECT TO PED"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: '''ATTACH_OBJECT_TO_PED''' [OBJECT, CHAR, UNKNOWN1, X, Y, Z, UNKNOWN2] OBJECT represents object handle, of an attaching item. CHAR - handle of character object, where item is being attac...)
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''ATTACH_OBJECT_TO_PED''' [OBJECT, CHAR, UNKNOWN1, X, Y, Z, UNKNOWN2]
+
{{Native
 
+
|np=10
OBJECT represents object handle, of an attaching item.
+
|p1t=handle
 
+
|p1d=object handle
CHAR - handle of character object, where item is being attached to.
+
|p2t=handle
 
+
|p2d=ped handle
UNKOWN1 - integer  (gta script value: 1219)
+
|p3t=integer
 
+
|p3d=[[Ped Bones|Bone ID]]
X - integer giving X position of Object.
+
|p4t=float
 
+
|p4d=X Offset
Y - integer giving Y position of Object.
+
|p5t=float
 
+
|p5d=Y Offset
Z - integer giving Z position of Object.
+
|p6t=float
 
+
|p6d=Z Offset
UNKNOWN2 - integer (gta script value: 0)
+
|p7t=float
 
+
|p7d=RotoOffset X
 
+
|p8t=float
' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING
+
|p8d=RotoOffset Y
' INFORMATION IS EXTRACTED FROM GAME SCRIPTS
+
|p9t=float
 +
|p9d=RotoOffset Z
 +
|p10t=integer
 +
|p10d=Unknown (Always 0?)
 +
}}
 +
This function attaches an object to the ped.
 +
{{stub}}

Latest revision as of 19:42, 19 January 2013

ATTACH_OBJECT_TO_PED
Number of parameters: 10
Parameter #TypeDescription
1.handleobject handle
2.handleped handle
3.integerBone ID
4.floatX Offset
5.floatY Offset
6.floatZ Offset
7.floatRotoOffset X
8.floatRotoOffset Y
9.floatRotoOffset Z
10.integerUnknown (Always 0?)
Return value:
TypeDescription
None

This function attaches an object to the ped.