LiOneLMeSsIShoT Posted August 16, 2013 Share Posted August 16, 2013 I'm going to make a Pickup bag..and need this bag shows in the player back...not only destroy element...i want the bag shows in the player back...so what function to do that? ( bag model: 1550 ) Thanks. Link to comment
Castillo Posted August 16, 2013 Share Posted August 16, 2013 createObject attachElements or use bone_attach resource Link to comment
LiOneLMeSsIShoT Posted August 16, 2013 Author Share Posted August 16, 2013 createObject attachElements or use bone_attach resource May you give me an Example for this..? Please Thank you a lot Link to comment
Castillo Posted August 16, 2013 Share Posted August 16, 2013 addCommandHandler ( "bag", function ( thePlayer ) local bag = createObject ( 1550, 0, 0, 0 ) -- Creates an object at coordinates: 0, 0, 0 setElementCollisionsEnabled ( bag, false ) -- Disables the object collisions, so it won't collide with the player. attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) -- Attachs the object to the player that used the command. end ) Write "/bag" and enjoy! Link to comment
LiOneLMeSsIShoT Posted August 17, 2013 Author Share Posted August 17, 2013 I'm going to make a Pickup bag..and need this bag shows in the player back...not only destroy element...i want the bag shows in the player back...so what function to do that? ( bag model: 1550 )Thanks. How to check if the player's bending down with ( c ) key...to change the position of the bag..and how to check if the player's running..to make the bag in his back more..Thanks Link to comment
Castillo Posted August 17, 2013 Share Posted August 17, 2013 Well, instead of that, you can attach it to a bone, download the resource called "bone_attach". Link to comment
LiOneLMeSsIShoT Posted August 17, 2013 Author Share Posted August 17, 2013 Well, instead of that, you can attach it to a bone, download the resource called "bone_attach". How to use this bone_attach..downloaded..but i don't feel like using it..it's good? anyway can you tell me how to use it? or tell me how to check the player if he bends down or running with space Link to comment
Castillo Posted August 17, 2013 Share Posted August 17, 2013 Instead of using "attachElements" you use the exported function from bone_attach "attachElementToBone". 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