gersen 10 Posted October 4, 2014 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
tryteyker 28 Posted October 4, 2014 https://community.bistudio.com/wiki/BIS_fnc_locations Try and play around with this. Map center is defined through this, that should help if you for example want markers on every city center on the map: getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition") Share this post Link to post Share on other sites
dreadpirate 173 Posted October 4, 2014 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
gersen 10 Posted October 4, 2014 (edited) 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 October 4, 2014 by Gersen Share this post Link to post Share on other sites
jshock 513 Posted October 4, 2014 I think this may be what your looking for, but I could be misunderstanding you: https://community.bistudio.com/wiki/createLocation 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. Share this post Link to post Share on other sites
tryteyker 28 Posted October 4, 2014 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
scrumpyjacks 10 Posted October 4, 2014 you should be able to create custom locations using the info provided in jshocks post Share this post Link to post Share on other sites
gersen 10 Posted October 4, 2014 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
jshock 513 Posted October 4, 2014 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