0.3.DL Custom object help
#2

you must see this link to add specific coordinate by Bone Player : https://sampwiki.blast.hk/wiki/Bone_IDs

here from wiki :

playerid The ID of the player to attach the object to.
index The index (slot) to assign the object to (0-9 since 0.3d, 0-4 in previous versions).
modelid The model to attach.
bone The bone to attach the object to.
fOffsetX (optional) X axis offset for the object position.
fOffsetY (optional) Y axis offset for the object position.
fOffsetZ (optional) Z axis offset for the object position.
fRotX (optional) X axis rotation of the object.
fRotY (optional) Y axis rotation of the object.
fRotZ (optional) Z axis rotation of the object.
fScaleX (optional) X axis scale of the object.
fScaleY (optional) Y axis scale of the object.
fScaleZ (optional) Z axis scale of the object.
materialcolor1 (optional) The first object color to set, as an integer or hex in ARGB color format.
materialcolor2 (optional) The second object color to set, as an integer or hex in ARGB color format


public OnPlayerSpawn(playerid){
SetPlayerAttachedObject(playerid, 3, 1609, 2); //Attach a turtle to the playerid's head, in slot 3

// example of using colors on an object being attached to the player:
SetPlayerAttachedObject(playerid, 3, 19487, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1.0, 1.0, 1.0, 0xFF00FF00);
// Attach a white hat to the head of the player and paint it green
return 1;
}
Reply


Messages In This Thread
0.3.DL Custom object help - by Zeus666 - 17.03.2018, 12:36
Re: 0.3.DL Custom object help - by gobay - 29.03.2019, 09:15
Re: 0.3.DL Custom object help - by Lirbo - 29.03.2019, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)