Jump to content
Sign in to follow this  
Khalashnikovf

Create a thousand markers via one script? And if some unit is in It?

Recommended Posts

I need to create limitless number of markers at once via only one script, how can i do that?

I need to somehow change its name or what?

Every marker would have its own position based on some array.

Share this post


Link to post
Share on other sites

Use call compile format.

For example:

_vehicle is a car named "myPorsche"

call compile format ["%1_fuel = fuel _vehicle", _vehicle];

This would create a variable called myPorsche_fuel, and the value is the fuel value of myPorsche.

Share this post


Link to post
Share on other sites

Dont need compile as markers are just string.

for "_i" from 0 to 10 do {
 _mrkName = format ["marker_%1",_i];
};

Will make marker_0, marker_1, marker_2 etc.

Share this post


Link to post
Share on other sites

But Im not sure if the name of something is able to be with " " signs. Isnt it?

---------- Post added at 23:04 ---------- Previous post was at 22:59 ----------

Well, little extend of topic. And what if some unit is in area of this marker (or trigger)

How can I make it?

Unit in Location?

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  

×