Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Trigger activation when more people are dead
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Trigger activation when more people are dead (Read 1331 times)
0 Members and 1 Guest are viewing this topic.
FlyingDuck
Guest
Trigger activation when more people are dead
«
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
)
Logged
Terox
Former Staff
Follow the Sappers!
Re: Trigger activation when more people are dead
«
Reply #1 on:
12 Aug 2006, 15:15:17 »
(! alive G1)&& (! aliveG2)&&(! aliveG3)
or
{alive _x count [G1,G2,G3] == 0}
Logged
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123
dmakatra
Members
Better known as Armsty
Re: Trigger activation when more people are dead
«
Reply #2 on:
12 Aug 2006, 17:48:35 »
Quote from: Terox on 12 Aug 2006, 15:15:17
(! 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)
Logged
macguba
Former Staff
Re: Trigger activation when more people are dead
«
Reply #3 on:
12 Aug 2006, 18:35:17 »
Neils, your English is just fine. :thumbsup:
Logged
Plenty of
reviewed ArmA missions
for you to play
THobson
OFPEC Patron
Former Staff
Re: Trigger activation when more people are dead
«
Reply #4 on:
13 Aug 2006, 08:32:41 »
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
«
Last Edit: 13 Aug 2006, 08:34:32 by THobson
»
Logged
FlyingDuck
Guest
Re: Trigger activation when more people are dead
«
Reply #5 on:
13 Aug 2006, 14:08:48 »
Thank you all guys, I use dmakatra`s way to do it. This one can I remember very easy
Logged
THobson
OFPEC Patron
Former Staff
Re: Trigger activation when more people are dead
«
Reply #6 on:
13 Aug 2006, 14:58:35 »
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.
Logged
Seven
Members
Am I a llama?
Re: Trigger activation when more people are dead
«
Reply #7 on:
13 Aug 2006, 17:24:41 »
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
Logged
Belgian eLite Force
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Trigger activation when more people are dead
Top of page