this is the script im using, by surpher
_deadMarkerType = _this select 0
_deadMarkerSize = _this select 1
_detectedByGroup = _this select 2
~2
#track
; check if player dead
?!(alive pl1): "pl1M" Setmarkertype _deadMarkerType && "pl1M" setmarkercolor "ColorRed" && "pl1M" setMarkerSize _deadMarkerSize
?!(alive pl2): "pl2M" Setmarkertype _deadMarkerType && "pl2M" setmarkercolor "ColorRed" && "pl2M" setMarkerSize _deadMarkerSize
?!(alive pl3): "pl3M" Setmarkertype _deadMarkerType && "pl3M" setmarkercolor "ColorRed" && "pl3M" setMarkerSize _deadMarkerSize
?!(alive pl4): "pl4M" Setmarkertype _deadMarkerType && "pl4M" setmarkercolor "ColorRed" && "pl4M" setMarkerSize _deadMarkerSize
?!(alive pl5): "pl5M" Setmarkertype _deadMarkerType && "pl5M" setmarkercolor "ColorRed" && "pl5M" setMarkerSize _deadMarkerSize
; check if player injured
?(getDammage pl1 > 0.3 && alive pl1): "pl1M" setMarkerColor "ColorYellow"
?(getDammage pl2 > 0.3 && alive pl2): "pl2M" setMarkerColor "ColorYellow"
?(getDammage pl3 > 0.3 && alive pl3): "pl3M" setMarkerColor "ColorYellow"
?(getDammage pl4 > 0.3 && alive pl4): "pl4M" setMarkerColor "ColorYellow"
?(getDammage pl5 > 0.3 && alive pl5): "pl5M" setMarkerColor "ColorYellow"
; move marker
?(leader _detectedByGroup knowsabout pl1 > 1) : "pl1M" SetMarkerPos GetPos pl1
?(leader _detectedByGroup knowsabout pl2 > 1) : "pl2M" SetMarkerPos GetPos pl2
?(leader _detectedByGroup knowsabout pl3 > 1) : "pl3M" SetMarkerPos GetPos pl3
?(leader _detectedByGroup knowsabout pl4 > 1) : "pl4M" SetMarkerPos GetPos pl4
?(leader _detectedByGroup knowsabout pl5 > 1) : "pl5M" SetMarkerPos GetPos pl5
goto "track"
i have my 5 guys that i want to have the markers follow named pl1 pl2 pl3 pl4 pl5 and the markers names are pl1m pl2m pl3m pl4m pl5m, all the 5 guys are team1 = groupthis. the 10 guys that i have looking for them are lookout = groupthis. my init.sqs looks like this
["marker",[0.25,0.25],lookout] exec "detectedUnitTracking.sqs"
exit
anything im doing wrong here??, also is it possible to have it so the markers appear if lookout group comes within 300m? thx in advance ;D