Also, does this look correct or are Resistance troops called something other than GUER when it comes to naming their side? I opened the mission when i placed a Resistance troop and his side was "GUER"
Here is the capture script i altered:
_flag = _this select 0
_side = _this select 1
?(_side == WEST): goto "West"
?(_side == EAST): goto "East"
?(_side == GUER): goto "Guerrila"
exit
#West
?!(local Server): goto "Westclient"
WestScore = WestScore + 1
WestArray = WestArray + [_flag]
EastArray = EastArray - [_flag]
GuerrilaArray = GuerrilaArray - [_flag]
PublicVariable "WestScore"
#Westclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "usa_vlajka.pac"
_flag setflagside WEST
goto "end"
#East
?!(local Server): goto "Eastclient"
EastScore = EastScore + 1
EastArray = EastArray + [_flag]
WestArray = WestArray - [_flag]
GuerrilaArray = GuerrilaArray - [_flag]
PublicVariable "EastScore"
#Eastclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "rus_vlajka.pac"
_flag setflagside EAST
goto "end"
#Guerrila
?!(local Server): goto "Guerrilaclient"
GuerrilaScore = GuerrilaScore + 1
GuerrilaArray = GuerrilarArray + [_flag]
EastArray = EastArray - [_flag]
WestArray = WestArray - [_flag]
PublicVariable "GuerrilaScore"
#Guerrilaclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "fia_vlajka.pac"
_flag setflagside GUER
goto "end"
#end
?(local Server): [_flag, _side] exec "control.sqs"
~1.5
hint format["West: %1\nEast: %2\nGuerrila: %3", WestScore, EastScore, GuerrilaScore]
Exit
is this correct anyone?