Jump to content
Sign in to follow this  
satory

Making enemy units appear on the map?

Recommended Posts

This is probably a simple question, but I couldn't find what I was looking for so...

One of the objectives in my map is a ambush a convoy, I'd like to make it that once this objective becomes the main one, basically after the trigger before it sets the convoy to move, I'd like the convoy to show on the map permenantly, until it reaches its destination.

How would I go about doing this?

Share this post


Link to post
Share on other sites

One way to do this is to have a script running in loop keeping a marker on the lead vehicle.

create empty marker named cmark, name lead convoy vehicle convoyldr and in your trigger onactivation of trigger put:

cmark = ["markername",leadvehiclename] execVM "convoymarker.sqf";

then in notepad or other text editor add the following and save file as convoymarker.sqf (make sure file extension is changed to the .sqf) and put file in your mission folder

_mark = _this select 0;
_cveh = _this select 1;

_mark setmarkertype "dot";

While {alive _cveh} do {
_mark setmarkerpos (getpos _cveh);
sleep 1;
};
if (true) exitwith {player sidechat "Lead vehicle Destroyed"; _mark setmarkertype "empty";};

Now I just whipped that up so it may be buggy (typo) but should work.

Edited by Ghost

Share this post


Link to post
Share on other sites

Thanks very much, I'll give it a go.

Share this post


Link to post
Share on other sites

Just tested, had some typos :rolleyes: adjusted previous post should work well. in the array for markername make sure you put it in "markname"

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  

×