Player Attached Object Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player Attached Object Problem (
/showthread.php?tid=664877)
Player Attached Object Problem -
PoniStar - 14.03.2019
hi , i created some attach object system , it will save the object info in player profile , so i want to (re)attach them on player spawn (if they just join or respawn after death objects should reload) the attaching with edit attach object is ok but in loading with this code :
Код:
for(new x=0;x<5;x++)
{
if(pObjects[playerid][x] != 0)
{
SetPlayerAttachedObject(playerid, x,pObjects[playerid][x],1, pObjectsPos[playerid][x][0],pObjectsPos[playerid][x][1], pObjectsPos[playerid][x][2],pObjectsPos[playerid][x][3], pObjectsPos[playerid][x][4],pObjectsPos[playerid][x][5], pObjectsPos[playerid][x][6],pObjectsPos[playerid][x][7], pObjectsPos[playerid][x][8]);
}
}
the objects will not show on right position and are in player body (in boneid [1]) what is the problem ??
Re: Player Attached Object Problem -
PoniStar - 14.03.2019
wait , i found something , it will just happend when i set the boneid on buying attachment to HEAD

?