PeterTheHacker Posted June 23, 2016 Share Posted June 23, 2016 How do I attack a ped to a player? I want the ped to "ragdoll". The ped should be hanging from the players right hand. I've tried using the native attach function, but couldn't get the ped to ragdoll. Link to comment Share on other sites More sharing options...
AHK1221 Posted June 23, 2016 Share Posted June 23, 2016 (edited) Try attaching and forcing ragdoll?Or using this native: ATTACH_ENTITY_TO_ENTITY_PHYSICALLY Edited June 23, 2016 by AHK1221 Link to comment Share on other sites More sharing options...
PeterTheHacker Posted June 23, 2016 Author Share Posted June 23, 2016 (edited) Try attaching and forcing ragdoll? Or using this native: ATTACH_ENTITY_TO_ENTITY_PHYSICALLY That's what I meant by "already tried it" (sorry didn't make that clear enough). I've tried ATTACH_ENTITY_TO_ENTITY_PHYSICALLY, but I couldn't get it to work. Maybe you can tell me how to properly use it? Function.Call(Hash.ATTACH_ENTITY_TO_ENTITY_PHYSICALLY, closest, Game.Player.Character, closest.GetBoneIndex(Bone.SKEL_Head), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); Edited June 23, 2016 by PeterTheHacker Link to comment Share on other sites More sharing options...
milkjunk87 Posted June 24, 2016 Share Posted June 24, 2016 i think they attach a prop to player, make the prop invisible then attach the ped to the prop or something PeterTheHacker 1 Link to comment Share on other sites More sharing options...
PeterTheHacker Posted June 24, 2016 Author Share Posted June 24, 2016 (edited) i think they attach a prop to player, make the prop invisible then attach the ped to the prop or something That sounds very interesting! I'll definitely try this. Thank you! EDIT: Works! Thank you very much Milkjunk Edited June 24, 2016 by PeterTheHacker Link to comment Share on other sites More sharing options...
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