Jump to content
Sign in to follow this  
kocrachon

Moving Marker Question

Recommended Posts

Quick and easy question, how do I create a marker that follows a vehicle around? I want the marker to create when a Humvee is droped out of a C-130 and follow it around afterwords so that the men who also jumped can find it on the ground.

Share this post


Link to post
Share on other sites

exec/spawn:

createMarker["marker",[0,0,0]];
"marker" setMarkerShape "ICON";
"marker" setMarkerType "DOT";

while {alive humvee} do

{

"marker" setpos getpos humvee;

sleep 1;

};

deletemarker "marker";

obviously you can give the marker whatever properties you want, not just the above ones.

Share this post


Link to post
Share on other sites
exec/spawn:

createMarker["marker",[0,0,0]];
"marker" setMarkerShape "ICON";
"marker" setMarkerType "DOT";

while {alive humvee} do

{

"marker" setpos getpos humvee;

sleep 1;

};

deletemarker "marker";

obviously you can give the marker whatever properties you want, not just the above ones.

Thank you very much kind sir =)

---------- Post added at 03:12 AM ---------- Previous post was at 02:48 AM ----------

Actually slight hic-up... I dont quite see the marker. I set the humvees name in the script but still no marker showing up. I also have the humvee as the source of executing the script at init.

Share this post


Link to post
Share on other sites

I ended up getting it working after I went through the marker commands some more. Thanks for the help.

Share this post


Link to post
Share on other sites

Just curious: can the above code be pasted into the init field of the humveh in the editor? Or would i get an error because it has a loop included?

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  

×