Search the Community
Showing results for tags 'nearestlocation'.
Found 1 result
-
Getting name of town or city at location.
jakeplissken posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello. I am using this code to create a marker on the map that tells players of the location to capture. This does work for some towns, but for Molos it prints Delfinaki. _loc = text nearestLocation [getPos man1, "NameVillage"]; _marker28 = createMarker ["Objective.", position player ]; _marker28 setMarkerPos [14697.7,13000.5,53.9098]; _marker28 setMarkerShape "ICON"; _marker28 setMarkerColor "Default"; _marker28 setMarkerType "flag_NATO"; _marker28 setMarkerText format ["Seize: %1", _loc]; I tried this, but got an error, something about it being an array and not an object. _loc = text nearestLocation [getPos man1, ["NameVillage","NameCity","NameCityCapital"]]; _marker28 = createMarker ["Objective.", position player ]; _marker28 setMarkerPos [14697.7,13000.5,53.9098]; _marker28 setMarkerShape "ICON"; _marker28 setMarkerColor "Default"; _marker28 setMarkerType "flag_NATO"; _marker28 setMarkerText format ["Seize: %1", _loc]; Everything else is working except this code. I guess I am missing something simple. Thanks for any help you can give me. Is there a way to put the multiple options into this,- 1 reply
-
- location
- nearestlocation
-
(and 2 more)
Tagged with: