Jump to content

Recommended Posts

The purpose should be to find the "TRANSMITTER" tower on the map and create a task from it. (23 pieces Altis) and of course to choose randomly. 

nearestTerrainObjects

Share this post


Link to post
Share on other sites
_center = [worldSize/2, worldSize/2, 0]; 
_transmitters = nearestTerrainObjects [_center, ["Transmitter"], sqrt ((0.5*worldSize)^2*2)]; 
_transmitter =  selectRandom _transmitters;

 

  • Like 1

Share this post


Link to post
Share on other sites

I got maybe a little too fancy with the math (for "fun") so as to dynamically select the entirety of any terrain you use (a circle that intersects the four corners). You can of course use specific integers or whatever means you wish to derive the search area. Have fun!

 

  • Like 1

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

×