Need help carry a body [+4rep]
#1

Hi, I am a body system but I can not make it to the door in his hands, he does not appear:
To create the ground:
Код:
CorpsInfo[i][cObject][0] = CreateObject(2907, CorpsInfo[i][cPos][0],CorpsInfo[i][cPos][1],CorpsInfo[i][cPos][2], 0, 0, 274);
CorpsInfo[i][cObject][1] = CreateObject(2905, CorpsInfo[i][cPos][0]+0.85376, CorpsInfo[i][cPos][1]+0.161621, CorpsInfo[i][cPos][2]-0.01857662, 0, 26, 278);
CorpsInfo[i][cObject][2] = CreateObject(2905, CorpsInfo[i][cPos][0]+0.739746, CorpsInfo[i][cPos][1]-0.158935, CorpsInfo[i][cPos][2]+0.006423, 356.68469238281, 145.93511962891, 263.75891113281);
CorpsInfo[i][cObject][3] = CreateObject(2906, CorpsInfo[i][cPos][0]-0.081787, CorpsInfo[i][cPos][1]+0.239991, CorpsInfo[i][cPos][2]-0.03601265, 359.30590820313, 273.93939208984, 298.02392578125);
CorpsInfo[i][cObject][4] = CreateObject(2906, CorpsInfo[i][cPos][0]-0.024414, CorpsInfo[i][cPos][1]-0.30957, CorpsInfo[i][cPos][2]-0.03601265, 359.01071166992, 339.99688720703, 242.68936157227);
To wear in her hands

Код:
    SetPlayerAttachedObject(playerid, 0, 2907,0,Position[0],Position[1],Position[2]);
    SetPlayerAttachedObject(playerid, 1, 2905,0,Position[0]+0.85376, Position[1]+0.161621,Position[2]-0.01857662, 0, 26, 278);
    SetPlayerAttachedObject(playerid, 2, 2905,0,Position[0]+0.739746, Position[1]-0.158935,Position[2]+0.006423, 356.68469238281, 145.93511962891, 263.75891113281);
    SetPlayerAttachedObject(playerid, 3, 2906,0,Position[0]-0.081787, Position[1]+0.239991,Position[2]-0.03601265, 359.30590820313, 273.93939208984, 298.02392578125);
    SetPlayerAttachedObject(playerid, 4, 2906,0,Position[0]-0.024414, Position[1]-0.30957,Position[2]-0.03601265, 359.01071166992, 339.99688720703, 242.68936157227);
Thank you, sorry translated with ****** translation
Reply
#2

UP (4 page ...)
Reply
#3

Le paramиtre "partie du corps" (4иme) tu l'as mit а 0, voilа pourquoi зa marche pas.
La partie du corps 0 existe pas. Source : https://sampwiki.blast.hk/wiki/Bone_IDs_FR

English :

The "bodypart" (bone) parameter (4th one), you've set it to 0, that's why it doesn't work.
The bone ID 0 doesn't exists. Cf : https://sampwiki.blast.hk/wiki/Bone_IDs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)