18.12.2016, 16:05
Hello,
I am working on an inventory system and I was wondering how I could attach objects to a player without them always having to adjust the position manually
and without me having to save the offsets for every object.
What's the best way to realistically attach an object to a player?
I am working on an inventory system and I was wondering how I could attach objects to a player without them always having to adjust the position manually
and without me having to save the offsets for every object.
PHP код:
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)
PHP код:
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)