Dewolr Posted September 12, 2017 Share Posted September 12, 2017 Hello people! i want to pick up an object, and attach it to the hand of the ped i have some idea, and i do know what i need to use getElementsByType! Please help me brothers! Link to comment
msyyn Posted September 15, 2017 Share Posted September 15, 2017 Please tell us more about your issue. Like how the actual pickup would happen, you walk to a box and it picks it to your hand as soon as you go next to it, or you have to press keyboard button or write a command? But basically, you should take a look at bone_attach -resource (https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540). Link to comment
itHyperoX Posted September 15, 2017 Share Posted September 15, 2017 https://wiki.multitheftauto.com/wiki/OnClientClick Link to comment
Zorgman Posted September 15, 2017 Share Posted September 15, 2017 This is how I do it: on key press, I create a 'sniffer' colshape in front of the player and loop through the objects in it. If they have the proper model, I trigger the pick up part and attach the object to the player. SA has a partial carrying animation that is only affecting the hands, placing them in 'carry' position while you can still walk around, you might want to use that. Good luck! 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