SetPlayerAttachedObject
#1

How do you make it so the object turns with the players head?

For example, my player has sun glasses attached and they remain in the same position when my characters head turns.

Thanks
Reply
#2

Attach it to the head's bone
https://sampwiki.blast.hk/wiki/Bone_IDs
Reply
#3

s0nic your still scripting SA-MP?

It's Josh from vG
Reply
#4

Simply change the bone.

Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)