fasad 1 Posted November 22, 2007 Using the supportInfo command, I've found some interesting undocumented scripting commands relating to "Locations" in ArmA 1.08 (hotfix). They relate to the locations defined in an island's config, that define the island's map markings such as town names, peak heights, forest vegetation type icons, etc. I've succeeded in created a new location using this : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">createLocation [<"locationType">,<positionArray>,<sizeX>,<sizeY>] and found it using this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nearestLocations [<positionArray>,[<"locationType">,<"locationType2"><etc>],<searchRadius>] <"locationType"> is a string containing an existing location class name, eg "RockArea" (examples can be found in bin\config.bin). <positionArray> is a 2d position array, eg [2000,4000] The other commands I've tested work as expected. I'm not really sure how locations can to be used, but these commands at least provide a new way to add text and icons to the game map. Since they can have a area and side value, they might be of use for something more? The position in Location command certainly adds a new feature - a simple method to test if a unit is within a given 2d area (locations seem to follow the same size/area definitions as triggers and markers). location attachObject object also sounds pretty interesting. Unfortunately it seems that existing locations defined in an island's config are read only and can not be altered using these commands. (I've edited this post a lot as I'm learning) Share this post Link to post Share on other sites
scars09 9 Posted November 22, 2007 thx for sharing your find fasad. is change of fontsize and color possible? would give some nice additional methods to provide information on the map. Share this post Link to post Share on other sites
fasad 1 Posted November 23, 2007 I've updated the wiki page with some more results. The most interesting finds are the position in location test and attachObject can attach a location marker to an object, natively keeping it's position updated on the map. All in all these commands seem to offer little benefit over markers. thx for sharing your find fasad.is change of fontsize and color possible? would give some nice additional methods to provide information on the map. No, it's not possible without a custom config (addon). You can use the default types defined in the game - it only has 4 different sizes of black text, a blue italic text, and icons. I'm sure a tiny config addon could easily add some more interesting text and icon types. For reference, CfgTerrainTypes in bin\config.bin are : Mount (used for local peaks), Name, NameMarine, NameCityCapital, NameCity, NameVillage, NameLocal, Hill, ViewPoint, RockArea, BorderCrossing, VegetationBroadleaf, VegetationFir, VegetationPalm, VegetationVineyard Share this post Link to post Share on other sites