ok, the following script is executed using this line:
[group1, marker1] exec "marker.sqs"
and there is a marker called marker1 and a west squad, with the leaders init field reading:
group1 = group this
and heres the script:
_group = _this select 0
_marker = _this select 1
#loop1
"_marker" setMarkerColor "Green"
"_marker" setmarkerpos (getpos (leader _group))
? west countside units _group < 7 : goto "loop2"
~0.5
goto "loop1"
#loop2
"_marker" setMarkerColor "Yellow"
"_marker" setmarkerpos (getpos (leader _group))
? west countside units _group < 1 : goto "loop3"
~0.5
goto "loop2"
#loop3
"_marker" setMarkerColor "Red"
exit
ok, so what should happen is that the placed marker follows the leader of the group - it will then change colour depending on the state of the squad (how many men are left alive)
the problem is, that it doesnt even move to the leader to start with - it just stays in posistion.