Hi all.
This is a simple version of my sector update script. This version uses markers as sectors, another version changes (hides / un-hides) flags based on ownership.
AT moment I would need to copy the code for EVERY sector... pointless, so i want to add all sectors (markers or flags for the flag version) to an array and then update them via the below script.
The script works fine with single referenced sectors and updates every 5 seconds or so if aaf are only in the sector it changes green, blue for nato and red lines for contested. Also notifies me of sector updates.
So onto the script please i need help with the highlighted text. Type Array expected string. I cannot find way of using for each reference each sector (Marker) in the array with distance to the marker referenced in the unit count code.
Please help, so close but cannot complete.