catsobelico Posted May 4, 2015 Share Posted May 4, 2015 Hi you all, i just made my first script. It is supposed to attach an element to the player but what i need is to attach element to an specific bone of the playermodel, but i dont know how, i really appreciate if you could help me guys client function GasMask ( hat ) local x, y, z = getElementPosition ( getLocalPlayer ) local mask = createObject( 2054, x, y, z ) attachElements ( mask, getLocalPlayer), 0, 0, 5 ) end addCommandHandler ( "hat", GasMask ) server function GasMask ( thePlayer, hat ) local x, y, z = getElementPosition ( thePlayer ) local mask = createObject( 2054, x, y, z ) attachElements ( mask, thePlayer, 0, 0, 5 ) end addCommandHandler ( "hat", GasMask ) Link to comment
xXMADEXx Posted May 5, 2015 Share Posted May 5, 2015 For this, you need to use an export to the bone_attach resource. Link to comment
catsobelico Posted May 5, 2015 Author Share Posted May 5, 2015 There has to be another way, bone attachment is old and there is nothing about it in wiki Link to comment
Walid Posted May 5, 2015 Share Posted May 5, 2015 There has to be another way, bone attachment is old and there is nothing about it in wiki You need to download Bone_attch resource as xXMADEXx said then use this exports.bone_attach:attachElementToBone(object,player,bone,x,y,z,xr,xy,xz) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now