[BUG] Bugged ObjectID ?
#1

I'd like to have a Santa Hat on the Player's head.

But my Script doesn't works:
Код:
	SantaHat[playerid] = CreateObject(19064,0,0,0,0,0,0,-1,-1,250.0,-1);
	SetPlayerAttachedObject(playerid, 1, SantaHat[playerid], 2, 0.07, 0, 0, 88, 75, 0);
So does it looks:


Please help me. I think the ObjectID is bugged. Here I get the ObjectID: Click Me
I hope you will help me.

]B4E[kengston
Reply
#2

pawn Код:
SetPlayerAttachedObject(playerid, 1, 19064, 2, 0.07, 0, 0, 88, 75, 0);
Reply
#3

Thank you chaoz

Edit:
Does anybody know the rights Coordinates for the Object?
Now it looks like this:

But i liked that it is placed right on the head.
Please help me again.
Reply
#4

Try to set X, Y offset to 0 and Z offset to 5
Reply
#5

I have tried for 5 hours -,- But i didn't find the Cords.
Reply
#6

Quote:
Originally Posted by ]B4E[kengston
Посмотреть сообщение
I have tried for 5 hours -,- But i didn't find the Cords.
Did you try what Luka P said? setting X and Y to 0 and Z to 5

pawn Код:
SetPlayerAttachedObject(playerid, 1, 19064, 2, 0, 0, 5);
Reply
#7

This is what i use, and it works fine with most of the skins.

Код:
SetPlayerAttachedObject(playerid,1,19066,2,0.1099,0.019,0.0,0.0,90.0,90.0,1.1,1.1,1.1);
Reply
#8

Most != all lol
Objects on the head is a very complex problem...
You'll need to find the offset of all the skins to make all of them suitable to be put on because the skins have different heights.
You may apply the offsets to skins with similar heights to reduce the time.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)