Home   Help Search Login Register  

Author Topic: Problems with marker script  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

TH

  • Guest
Problems with marker script
« on: 17 Jun 2004, 23:26:11 »
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
« Last Edit: 17 Jun 2004, 23:29:03 by TH »

j-man

  • Guest
Re:Problems with marker script
« Reply #1 on: 18 Jun 2004, 00:03:09 »
TH, whats the problem ???

TH

  • Guest
Re:Problems with marker script
« Reply #2 on: 18 Jun 2004, 01:42:13 »
o yeah...lol... when pl1 pl2 pl3 pl4 pl5 are spotted by lookout group the markers dont go to them  :-\

Korax

  • Guest
Re:Problems with marker script
« Reply #3 on: 27 Jun 2004, 09:06:27 »
When your setting the groups it should be "team1 = group this" and NOT "groupthis", thats 2 words not one!

TH

  • Guest
Re:Problems with marker script
« Reply #4 on: 27 Jun 2004, 19:14:37 »
o, lol thx it works now ;D