1. make a marker in the editor called
mkrWhatever2. make a call to markerFollowGroup.sqf in your init.sqf
["mkrWhatever", (group someDude)] execVM "markerFollowGroup.sqf";
Or
["mkrWhatever", BLU_1plt_HQ] execVM "markerFollowGroup.sqf";
someDude is the object's name in the editor, or you can pass it a group variable that is created by putting something like:
BLU_1plt_HQ = (group this); in the init field of the unit.
3. Create a file called markerFollowGroup.sqf, and put this in it:
#define UPDATE_DELAY 2
_mkr = _this select 0;
_grp = _this select 1;
// loop as long as there are any members alive in the group
while { ({alive _x} count (units _grp)) > 0 } do
{
_mkr setMarkerPosLocal (getPos (leader _grp)); // always put the marker on the leader of the group
sleep UPDATE_DELAY;
};
// we end up here if all group members are dead
I haven't tried this on a dedicated server, but if it fails to work on one, just put a
waitUntil { !isNull player }; on the beginning of the script