Jump to content
SimuNews

Add prop to hand

Recommended Posts

Hi there,

I want to add a bottle of beer in the hand of my Ped.

But i don't know how it works?

Can anyone help me?

 

Thanks

 

Share this post


Link to post
Share on other sites
var pedToAttachTo = new Ped();
var @object = new Object("ng_proc_beerbottle_01a", Vector3.Zero);
if (@object) @object.AttachTo(pedToAttachTo, pedToAttachTo.GetBoneIndex(PedBoneId.RightHand), new Vector3(), new Rotator()); //use menyoo to get vector3 and rotator values

Share this post


Link to post
Share on other sites
8 hours ago, NoNameSet said:

var pedToAttachTo = new Ped();
var @object = new Object("ng_proc_beerbottle_01a", Vector3.Zero);
if (@object) @object.AttachTo(pedToAttachTo, pedToAttachTo.GetBoneIndex(PedBoneId.RightHand), new Vector3(), new Rotator()); //use menyoo to get vector3 and rotator values

thanks

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×