gc8 977 Posted March 28, 2012 hi i was trying to get name of location but the name command returns empty string... i tried this: t = nearestLocation [getpos player, "NameCityCapital"]; name t; // Empty string t has location set though. is it buggy? Share this post Link to post Share on other sites
gammadust 12 Posted March 28, 2012 have you tried "NameCity" or "NameVillage" only, maybe there is no capital set, tried a different map, is it an official one? (check bin\Config.bin\CfgLocationTypes for valid location types) Share this post Link to post Share on other sites
twirly 11 Posted March 28, 2012 Try this.... the hint will show you what's on the island/map. _locs = [ nearestLocations [[0, 0, 0], ["NameCityCapital", "NameCity", "NameVillage", "NameLocal"], 100000]]; hint format ["%1",_locs]; On Utes for instance...there are no Capitals or Cities. Share this post Link to post Share on other sites
Bon 12 Posted March 29, 2012 Try this: t = nearestLocation [getpos player, "NameCityCapital"]; _name = text t; Share this post Link to post Share on other sites
gc8 977 Posted March 30, 2012 Try this: t = nearestLocation [getpos player, "NameCityCapital"]; _name = text t; That was correct thanks Share this post Link to post Share on other sites