Jump to content
Chainsaw_Squirrel

id there a way search for a known position in the editor ?

Recommended Posts

I'm trying to find the position on the map that has traders for epoch chernarus .. I have the pos need a way search and mark the position on the map so I can add some map edits around the traders location, wanting to put walls up , since I don't use safe zones, but want to give some ability to cover players as they trade.
But with out a way to search the exact position makes it tuff since I can see those in the editor

Share this post


Link to post
Share on other sites

Are there any other units/men on the map than the traders? If not, you can simply search for all men in the whole "world" and save their position for further use:

_mapRadius = (getNumber (configFile >> "CfgWorlds" >> worldName >> "mapSize")) / 2;
_mapCenter = [_mapRadius, _mapRadius];
_allTraderPositions = _mapCenter nearEntities (_mapRadius * 1.1);
{
    //do whatever you want here
} forEach _allTraderPositions;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×