Deja Vu
lol - for some reason i get the feeling that your script has taken us straight
back to 'Start'
This is definitely the same script which rhysduk postet first with the only difference
of ?(a > 1): goto "loop".
Well, in theory and even in praxis the script does it's job seven, but there's one rule
about scripting which should be considered whenever it's possible:
don't waste cpu powerWherever you can try to avoid using multiple lines if you can do it in one single line.
Imagine what if a script like this runs for 50 units: The checkdead setmarkerpos stuff will increase
to 150 lines.
And the counter _a you also increase it by 1 every 2 seconds. After 30 minutes the counter arrives 900
and still counting upwards (like the elevator comming out of the roof).
as for not checking dead units a simple label (x2) with the same code but for only 1 unit would just do fine too?
Yeah, 2 more lines two prevent going through two other lines
_unit = ya know
?not alive: goto "skipit"
....
....
"skipit"
Wow, now 20 units would end up with 100 lines for the check-stuff only.
Don't get me wrong Seven, but that's been the reason why i broke my
brain yesterday in the night. The only prob was that i ain't got ofp at work
and i can't test stuff there, so it took a while to make this script error-free.
btw rhysduk, i'll go for the remove deads from array after moving marker to 0,0
stuff now.
~S~ CD