Jump to content
Sign in to follow this  
Doodle

move object to marker

Recommended Posts

I am using the following to move an object to a vehicle marker

box1 setPos (getMarkerPos "car_marker");

this works fine BUT will place the box in the middle of the vehicle. - Anyone help how I could move it to "just off center of maker"

I know I can use the below if I want to move the box to the side of the vehicle

box1 setpos (car modelToWorld [4,2,0]);

but for mission it needs to be a marker

is there something that can do similar but for a marker rather than object

thanks in advance

Share this post


Link to post
Share on other sites
box1 setPos [((getMarkerPos "car_marker" select 0) +4), ((getMarkerPos "car_marker" select 1) +2), (getMarkerPos "car_marker" select 2)];

Edited by Na_Palm
wrong outer brackets

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
Sign in to follow this  

×