Difference between revisions of "ATTACH OBJECT TO PED"

From GTAMods Wiki
Jump to navigation Jump to search
Line 21: Line 21:
 
|np=7
 
|np=7
 
|p7t=integer
 
|p7t=integer
|p7d=Z Offset
+
|p7d=RotoOffset X
 +
|np=8
 +
|p8t=integer
 +
|p8d=RotoOffset Y
 +
|np=9
 +
|p9t=integer
 +
|p9d=RotoOffset Z
 +
|np=10
 +
|p10t=integer
 +
|p10d=Unknown (Always 0?)
 
}}
 
}}
  
Line 29: Line 38:
 
- Attaches object to character model
 
- Attaches object to character model
  
- '''ATTACH_OBJECT_TO_PED''' (MyObject,  Player.Character, 1219, 8.00, -1, 3328)
+
- '''ATTACH_OBJECT_TO_PED''' (MyObject,  Player.Character, 1219, 8.00, -1, 3328, 0, 0, 0, 0)
  
 
' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING
 
' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING

Revision as of 16:24, 20 January 2009

ATTACH_OBJECT_TO_PED
Number of parameters: 10
Parameter #TypeDescription
1.pointercreated object handle
2.pointercharacter variable
3.integerUnknown
4.integerX Offset
6.integerZ Offset
7.integerRotoOffset X
8.integerRotoOffset Y
9.integerRotoOffset Z
10.integerUnknown (Always 0?)
Return value:
TypeDescription
None


Explanation:

- Attaches object to character model

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

' NOTE THAT THIS FUNCTIONS ARE STILL UNDER TESTING