Hi surpher,
I take it that this script is used for keeping markers at the position that the player is at? IE tracking the units position?
If this is the case then the script can be cut down by more than a half of the lenght you have it now.
Bear in mind because of the lenght of the script, there would be a significant delay between tracking each of hte units in the script.. because the longer the script the longer it takes to get to the Goto "track" bit of the script...
I have a script tht does exactly this, it tracks a units position (currently set at six) for a MP map im making, if you want let me know...
Also,
Why would u want to set the marker colour and type using the script? (im referring to the first part of the script, the ?!(alive pl1) parts, why cant u set the colour of the markers, and their types int he editor and stick them in the top corner of the map out of the way, until they are called for? Then you can just set their colour to yellow for the next part of the script..
Hope this helps,
Rhys