Jump to content
Sign in to follow this  
gersen

Locations

Recommended Posts

I need tour help with a script.

I'm looking for a script that create a marker on the map locations but I don't know how to access the config.

Any help?

Share this post


Link to post
Share on other sites

Make the following your init.sqf file:

[["CityCenter"],[],true] call BIS_fnc_locations;

_strategic = ["Strategic","StrongpointArea","FlatArea","FlatAreaCity","FlatAreaCitySmall","CityCenter","Airport"];


_names = ["NameMarine","NameCityCapital","NameCity","NameVillage","NameLocal","fakeTown"];


_hills = ["Hill","ViewPoint","RockArea","BorderCrossing","VegetationBroadleaf","VegetationFir","VegetationPalm","VegetationVineyard"];


fnc_displayLocs = {
   _locs = [];
   _dist = 20000;
   {
       _locs = nearestLocations [getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"), _x , _dist];
   } forEach [_this select 0];


   private["_t","_m"];
   {
       _t = format["l%1",floor(random 10000)];
       _m = createMarker [_t, position _x];
       _m setMarkerType "mil_Dot";
       _m setMarkerText type _x;
       _m setMarkerColor (_this select 1);
   } forEach _locs;
};


[_strategic, "ColorBlue"] call fnc_displayLocs;
[_names, "ColorGreen"] call fnc_displayLocs;
[_hills, "ColorOrange"] call fnc_displayLocs;


(Obtained from old creobellum.org website and modified for A3)

Share this post


Link to post
Share on other sites

Thanks, this is what I was looking for. I've seen this script long time ago and can't find it anymore.

---------- Post added at 15:08 ---------- Previous post was at 14:21 ----------

Other questions: is there any way to create a list of custom locations, like in the config, to use in the missions?

My idea is to modify the locations with differents class like City, Village, MilitaryCamp, MilitaryBase,....

Edited by Gersen

Share this post


Link to post
Share on other sites

To modify already existing locations like Kavala you'll have to edit the world itself through an addon.

Share this post


Link to post
Share on other sites

But now that I read a bit closer I think you would have to make an addon to get done what your looking for, I could be wrong though :p.

Ad you say I want to change the class of existing locations. However I'd like not to tie the missione to a modo.

Any way to use the config file of an addon inside the missione folder?

Share this post


Link to post
Share on other sites
Ad you say I want to change the class of existing locations. However I'd like not to tie the missione to a modo.

Any way to use the config file of an addon inside the missione folder?

I just knew that it needed to be addon based, I have no idea exactly how to access the config of a mod.

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  

×