Player Attached Object Problem
#1

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 ??
Reply
#2

wait , i found something , it will just happend when i set the boneid on buying attachment to HEAD ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)