Home   Help Search Login Register  

Author Topic: Capture and Hold the Flag Problem  (Read 890 times)

0 Members and 1 Guest are viewing this topic.

DarkCell

  • Guest
Capture and Hold the Flag Problem
« on: 25 Oct 2003, 21:55:22 »
I Made a Capture and Hold the Flag map.
Everything works fine but... Here Comes Trouble! :o
Here is an Example:
West Captures Flag1 and Flag2 East has Flag3 but then West Wanna Take Flag3 also but....The Take Flag Command Won't show  ??? So West Can never win! But the Same problem happens by East so there Can never be a winner Accept if 1 team has all the flags first  :-\

So plz tell me what's wrong?
Here is how my Script Looks like:
Quote
_flag = _this select 0
_player = flagOwner _flag
?(_flag == Flag1): _msg = "Flag 1"
?(_flag == Flag2): _msg = "Flag 2"
?(_flag == Flag3): _msg = "Flag 3"

_player addscore 5

goto format ["%1", side _player]
goto "end"

#West
WestFlag = WestFlag + [_flag]
EastFlag = EastFlag - [_flag]
PublicVariable "WestFlag"
PublicVariable "EastFlag"
~0.5
(flagOwner _flag) setflagowner _flag
_flag setflagowner _flag
~0.5
_flag setflagtexture "usa_vlajka.pac"
_flag setflagside West
?(_flag == Flag1): "mFlag1" setMarkerColor "ColorBLUE"
?(_flag == Flag2): "mFlag2" setMarkerColor "ColorBLUE"
?(_flag == Flag3): "mFlag3" setMarkerColor "ColorBLUE"
titletext [format["NATO forces capture %1", _msg], "PLAIN DOWN"]
goto "end"

#East
EastFlag = EastFlag + [_flag]
WestFlag = WestFlag - [_flag]
PublicVariable "WestFlag"
PublicVariable "EastFlag"
~0.5
(flagOwner _flag) setflagowner _flag
_flag setflagowner _flag
~0.5
_flag setflagtexture "rus_vlajka.pac"
_flag setflagside East
?(_flag == Flag1): "mFlag1" setMarkerColor "ColorRED"
?(_flag == Flag2): "mFlag2" setMarkerColor "ColorRED"
?(_flag == Flag3): "mFlag3" setMarkerColor "ColorRED"
titletext [format["Russian forces capture %1", _msg], "PLAIN DOWN"]
goto "end"

#end
[_flag, side _player] exec "control.sqs"
Exit

DarkCell

  • Guest
Re:Capture and Hold the Flag Problem
« Reply #1 on: 26 Oct 2003, 17:38:41 »
Nobody knows what's Wromg with it?  ???  :(