Jump to content
Vandeanson

Attach object to player and make the object move with mouse cursor

Recommended Posts

Hi all,

 

I am a bit lost getting started with the basics for a script as i do not know what to look for.

 

i want to add addactions to objects.

that action attaches the object to the player

i got that sortet.

 

now i would like that the object is following my cursor, so i can move it around im front of me and , thisbis important: if i look up that lifts the object from the ground.

 

currently the object is moving with me, but stuck to the ground.

 

if someone could hint me into the right direction, i could read up on the rest:)

 

thanks for any help

vd

Share this post


Link to post
Share on other sites

Attach it to a selection of you character like head.

 

myobject attachto [myguy, [0,1,0] , "selectionname"]

Share this post


Link to post
Share on other sites
14 hours ago, Crielaard said:

Attach it to a selection of you character like head.

 

myobject attachto [myguy, [0,1,0] , "selectionname"]

thank you, will try and provide an update!

Share this post


Link to post
Share on other sites

Simulation is disabled when object is attached so their legs, etc won't move at all, etc.

Share this post


Link to post
Share on other sites

thanks!

i didnt have the time to test this yet but will sure get to it at some point!;)

Share this post


Link to post
Share on other sites
23 hours ago, HazJ said:

Simulation is disabled when object is attached so their legs, etc won't move at all, etc.

 

No, you can attach objects to Ais or player without disabling simulation for them. Legs and other parts will move.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×