29.11.2010, 16:04
What does the index thing mean in SetPlayerAttachedObject?
- Thanks!
- Thanks!
like you set an object to index 1 with bone id 2 (head) and something else on index 2 and bone id 5 (hand) then you can delete index 1 (the object at your head) etc..
new object;
object = createobject(blablabla);

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_SPAWNED)
{
SetPlayerAttachedObject(playerid, 0, 18749, 2, 0.0, 0.0, 0.0, 90.0, 0.0, 0.0, 0.0, 0.0, 0.0);
}
return 1;
}