OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FlyingDuck on 12 Aug 2006, 14:39:42
-
Hey,
I want a trigger that activate when the player killed more then 1 man. Now I use a trigger with condition: not (alive G1)
Now is it, If I kill G1 the trigger activates, but I want that the trigger activates when I killed G1, G2 and G3. I tried something like : not (alive G1, G2, G3) And: not (alive G1); not (alive G2); not (alive G3) But this won`t work.
I hope you can help me ( My englisch isn`t very well :P)
-
(! alive G1)&& (! aliveG2)&&(! aliveG3)
or
{alive _x count [G1,G2,G3] == 0}
-
(! alive G1)&& (! aliveG2)&&(! aliveG3)
Simplified version, before you start using those fancy &&s and ||s. ;)
(not alive G1) and (not alive G2) and (not alive G3)
-
Neils, your English is just fine. :thumbsup:
-
I am with dmakatra, using words makes it easier to read but the && and the || also work.
I think the line:
{alive _x count [G1,G2,G3] == 0}
Needs brackets as follows
{(alive _x) count [G1,G2,G3] == 0}
Indeed Niels your English is fine
-
Thank you all guys, I use dmakatra`s way to do it. This one can I remember very easy :P
-
It is easy for three units. For a lot of units it can be a real pain. That is where the:
{(alive _x) count [G1,G2,G3] == 0}
will really save effort.
-
or in a trigger
"alive _x" count [G1,G2,G3] == 0
will also do :)
but better to learn the correct way of using brackets I think ;D