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...)
 
Line 1: Line 1:
'''ATTACH_OBJECT_TO_PED''' [OBJECT, CHAR, UNKNOWN1, X, Y, Z, UNKNOWN2]
+
{{Native
 +
|np=6
 +
|np=1
 +
|p1t=pointer
 +
|p1d=created object handle
 +
|np=2
 +
|p2t=pointer
 +
|p2d=character variable
 +
|np=3
 +
|p3t=integer
 +
|p3d=Unknown
 +
|np=4
 +
|p4t=integer
 +
|p4d=X Offset
 +
|np=5
 +
|p15=integer
 +
|p5d=Y Offset
 +
|np=6
 +
|p6t=integer
 +
|p6d=Z Offset
 +
|np=7
 +
|p7t=integer
 +
|p7d=Z Offset
 +
}}
  
OBJECT represents object handle, of an attaching item.
 
  
CHAR - handle of character object, where item is being attached to.
+
'''Explanation:'''
  
UNKOWN1 - integer  (gta script value: 1219)
+
- Attaches object to character model
 
 
X - integer giving X position of Object.
 
 
 
Y - integer giving Y position of Object.
 
 
 
Z - integer giving Z position of Object.
 
 
 
UNKNOWN2 - integer (gta script value: 0)
 
  
 +
- '''ATTACH_OBJECT_TO_PED''' (MyObject,  Player.Character, 1219, 8.00, -1, 3328)
  
 
' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING
 
' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING
' INFORMATION IS EXTRACTED FROM GAME SCRIPTS
 

Revision as of 16:21, 20 January 2009

ATTACH_OBJECT_TO_PED
Number of parameters: 7
Parameter #TypeDescription
1.pointercreated object handle
2.pointercharacter variable
3.integerUnknown
4.integerX Offset
6.integerZ Offset
7.integerZ Offset
Return value:
TypeDescription
None


Explanation:

- Attaches object to character model

- ATTACH_OBJECT_TO_PED (MyObject, Player.Character, 1219, 8.00, -1, 3328)

' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING