I have a small problem.
I'm re-making an old CTF-mission where the WEST side was defending a flag and EAST were attacking. I don't have the old mission any more, and I've forgot how I solved a few problems.
So, my problem is.
How do I get the WEST side to score when they've killed 3 of the EAST soldiers?
Everyone respawns and all that. There's my scoring script:
_side = _this select 0
?!(local Server): goto "client"
?(_side == EAST): EastScore = EastScore + 1; PublicVariable "EastScore"
#client
?(_side == WEST): goto "wclient"
?(_side == EAST): goto "eclient"
#wclient
; what I want now is something that checks if an INT equals 3 (or if you have a better sollution please present it). More details below.
?(_side == WEST): WestScore = WestScore + 1; PublicVariable "WestScore"
titleText ["West score!", "PLAIN DOWN"]
goto "end"
#eclient
westflag setFlagOwner objNull
(flagOwner westflag) setFlagOwner objNull
titleText ["East captured the flag!", "PLAIN DOWN"]
#end
~10
titleText [format["West: %1 East: %2", WestScore, EastScore], "PLAIN DOWN"]
exit
OK so when the script is called upon ( [WEST] exec "capture.sqs" ) I want it will go to #wclient. BUT I don't want to add SCORE to West before, say the INT i == 3. And after i == 3 it should go back to 0. So, after 3 kills, west score.
This is not how I solved it the last time.
Please help!