Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  

Recommended Posts

Hi all.

how keeps a marker on the map moving where a specified,showing you where convoys are.

Thanks in advance.

Share this post


Link to post
Share on other sites

write a little script that takes any object as parameter, then let's have a loop that runs aslong this object is alive. Prior entering the loop, create a marker, maybe based on class/type of the object. Inside the loop you update the marker position. And once the loop has quit, you may either delete the marker or switch it's type to indicate that the object is dead...

Share this post


Link to post
Share on other sites

Hi there.

You can do the following:

Name the marker, for example :

mkr_convoy

Name for example the first car in the convoy:

MY_first_car

Then on the init line of the car put:

nul = [this, "mkr_convoy"] execVM "marker_convoy.sqf";

marker_convoy.sqf

_unit = _this select 0;

_marker = _this select 1;

while { alive _unit } do

{

_marker setMarkerPos (getPos _unit);

sleep 0.5;

};

Now every half second, the marker will update position in relation to the car.

_neo_

Share this post


Link to post
Share on other sites

Hello neokika.

that works great.

Thanks! You really helped.

ruebe happy that the problem is solved.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×