Home   Help Search Login Register  

Author Topic: kills are not counted STATUS BLUFOR 0 : OPFOR 0 ???  (Read 1391 times)

0 Members and 1 Guest are viewing this topic.

Offline hansham

  • Members
  • *
kills are not counted STATUS BLUFOR 0 : OPFOR 0 ???
« on: 08 Feb 2011, 18:48:39 »
I have made a sniper war map: opfor and blufor on each side. (team deathmatch)
I want the game to end when one side has 10 kills.
When a blufor side player kills an opfor opponent, the points are not added to blufor or opfor.

In my init.sqs have this:
timelimit = param1;
scorelimit = param2;
WestScore = 0;
EastScore = 0;

In my description.ext i have this:
titleParam1 = "Time limit:";
valuesParam1[] = {0, 900, 1800, 2700};
defValueParam1 = 1800;
textsParam1[] = {"Unlimited", "15 min", "30 min", "45 min"};

titleParam2 = "Score to win:";
valuesParam2[] = {2,10,15,20,25,30};
defValueParam2 = 10;
textsParam2[] = {2,10,15,20,25,30};

and i have 3 triggers, one that detects the time, one that detects the counting and one that ends the game.
trigger 1:
(Param1<10000) and (time>=param1)
on act: EndOfMission

trigger2:
(Param2 < 10000 and (({score _x >= Param2}) count  [S1, S2, S3, S4, S5, S6, R1, R2, R3, R4, R5] > 0))
on act: EndOfMission

why can I not put (westscore>=Param2) here?

trigger3:
type: End#1
name: EndOfMission

.....but it does not work.
what can I do