AttachEntityToEntity — RedM Natives
0x6B9BBD38AB0796DF · ENTITY · all
`` Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type. https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed collision - controls collision between the two entities (FALSE disables collision). isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds) vertexIndex - position of vertex fixedRot - if false it ignores entity vector ``
Parameters
| Name | Type |
|---|---|
| entity1 | Entity |
| entity2 | Entity |
| boneIndex | int |
| xPos | float |
| yPos | float |
| zPos | float |
| xRot | float |
| yRot | float |
| zRot | float |
| p9 | BOOL |
| useSoftPinning | BOOL |
| collision | BOOL |
| isPed | BOOL |
| vertexIndex | int |
| fixedRot | BOOL |
| p15 | BOOL |
| p16 | BOOL |
Returns
void