kibaBG 54 Posted June 20, 2024 Hi, I don't know one very basic thing - how to get map locations and then change their color. Is that even possible? Share this post Link to post Share on other sites
Joe98 93 Posted June 21, 2024 You could place a marker on the map. Change the size to suit and select a colour that suits. 1 Share this post Link to post Share on other sites
kibaBG 54 Posted June 21, 2024 I know about markers but can I do the same with locations (apart from size)? It would be cool to use locations instead of markers because they are already on the map and, as far as I understand correctly, they have their own area? Locations are big mystery for me ¯\_(ツ)_/¯ Share this post Link to post Share on other sites
Necropaulo 31 Posted June 21, 2024 Hi, from what I understand locations are included in the configuration of terrain and are linked to it. So if you want to change them, you'll have to use a mod that changes the config files. It's not possible to modify them directly via the editor, the best you can do is create markers that will act as rentals (make a building appear on the map, for example). You can find some informations on this topic. There are some functions that would be interresting : createLocation BIS_fnc_locations 2 Share this post Link to post Share on other sites
kibaBG 54 Posted June 21, 2024 @Necropaulo Damn, you are giving one more reason to pack missions as a mod. Thanks for the info! Share this post Link to post Share on other sites
opusfmspol 282 Posted June 21, 2024 Terrain locations (those in the map config) can only be modified by creating a scripted terrain location, as in createLocation example syntax 3. Or you can create a custom map location of your own, called a scripted location. Scripted locations can be fully modified or deleted in a mission using Location commands. To create a custom map location, place a game logic where you want the icon or the name to be located on the map, and in the logic init field put: myLocation = createLocation ["NameCity",this,100,100]; myLocation setText "My Location"; deleteVehicle this; myLocation is the variable used to modify or delete the location created in game. "NameCity" is the class name (type of location, which controls the font color, type of text, and icon that appears if it has one). this represents the location position (the location will be created at position of "this" logic). 100,100 represents the location's range, E-W and N-S. In scripts, you can check to see if an object's position is IN a location's range. Setting 0,0, the location has no range. setText "My Location" sets the name label that appears on the map. Default text is an empty string "" which is nothing, there is no name, only an icon shows if the location has an icon. deleteVehicle this removes the logic from the map (if no longer needed). You only need a variable if you intend to modify or delete the location during the mission. If you don't need the variable and just want the location created, that's it, use this: createLocation ["NameCity",this,100,100] setText "My Location"; deleteVehicle this; 3 Share this post Link to post Share on other sites