Jump to content
Sign in to follow this  
bravo 6

Alive teamS must be at same place + ai

Recommended Posts

lo aLL, i need some help on this plz.

2 teams:

;team1

team1 group p1

team1 group p2

;team2

team2 group p3

team2 group p4

Need to finish a mission with a civilian and all alive players of both teams.

The civilian will be "joining" (by waypoint) one of the teams. The first that gets closer first.

mission only ends if and when all players (alive players of team1 and team2) plus the ai (civil) are at a specific place (vehicle or pos on the map)

if the civil are not there with the teams or if at least 1 player of a team is not there the trigger will not start.

Suma: I want to make a trigger work only when all alive players or each team and the ai are at that specific position (vehicle/map).

If civil dies that specific trigger will not work and players will have to go to other exit.

how do i do this?

Share this post


Link to post
Share on other sites

Make the trigger activated by anybody and use this as your condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({(alive _X)&&((_X in (units team1))||(_X in (units team2))||(_X == civil))} count thislist) == ({alive _X} count ((units team1)+(units team2)+[civil]))

That should work if your groups are named "team1" and "team2" and your civilian is named "civil".

Edit:

Quote[/b] ]Suma: I want to make...

Oh, were you asking Suma? Oh well... you can just ignore what I said then... if you only want to hear what he has to say... icon_rolleyes.gif

Share this post


Link to post
Share on other sites
Suma: I want to make...

rofl.gif i never seen something like this in my hole life crazy_o.gifrofl.gif

We are here also to help you know.. let Suma get on with patches/Game 2 tounge2.giftounge2.gif

Edit: ^ What he said tounge2.gif

Share this post


Link to post
Share on other sites

lol rofl.gif

i meant suma as at bottom of line.. as in conclusion.

All help are wellcome biggrin_o.gif

thank you very much, ill test it smile_o.gif

notworthy.gif

edit: typo

Share this post


Link to post
Share on other sites
Make the trigger activated by anybody and use this as your condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({(alive _X)&&((_X in (units team1))||(_X in (units team2))||(_X == civil))} count thislist) == ({alive _X} count ((units team1)+(units team2)+[civil]))

That should work if your groups are named "team1" and "team2" and your civilian is named "civil".

i tryed that code and it didn't work.

it gives me no error but nothing happens.. huh.gif

anymore ideas?

Share this post


Link to post
Share on other sites
How's the rest of your trigger set up?

i have:

activation: anybody

type: none

axis a:11

axis b: 8

present

countdown

cond: ({(alive _X)&&((_X in (units team1))||(_X in (units team2))||(_X == civil))} count thislist) == ({alive _X} count ((units team1)+(units team2)+[civil]))

init: "2" objstatus "done"; hint "Area is secured"

Share this post


Link to post
Share on other sites

Try this:

activation: anybody

count thisList >= (count units team1) + (count units team2)

Share this post


Link to post
Share on other sites
How's the rest of your trigger set up?

i have:

activation: anybody

type: none

axis a:11

axis b: 8  

present

countdown

cond: ({(alive _X)&&((_X in (units team1))||(_X in (units team2))||(_X == civil))} count thislist) == ({alive _X} count ((units team1)+(units team2)+[civil]))

init: "2" objstatus "done"; hint "Area is secured"

Hmm... how about this then:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({(alive _X)&&(_X in thislist)} count ((units team1)+(units team2)+[civil]))>=({alive _X} count ((units team1)+(units team2)+[civil]))

If it still doesn't work you might have to set the trigger to repeatedly.

Edit:

Quote[/b] ]activation: anybody

count thisList >= (count units team1) + (count units team2)

This won't work for what he wants because if there are 25 enemies for example in the list and the total number of units in team1 and team2 is 4, then it will trigger right away. My 2 examples actually check if the units in the trigger list are those of team1, team2, and the civilian.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({(alive _X)&&(_X in thislist)} count ((units team1)+(units team2)+[civil]))>=({alive _X} count ((units team1)+(units team2)+[civil]))

tryed this and didnt work eighter.

thanks for helping, plz don't quit smile_o.gif

Share this post


Link to post
Share on other sites
Is your trigger set to repeatedly?

no,

its set to once

edit: changed to repeatedly and still not working. Nothing happens. No error and no hint or briefing mark.

Share this post


Link to post
Share on other sites
Is your trigger set to repeatedly?

no,

its set to once

Then try repeatedly.

smile_o.gif as i edited you posted..

tryed both and still not working.

Share this post


Link to post
Share on other sites

Kyle's condition works fine, there looks like there is a problem with Triggers. I setup a trigger with the two teams and civilian you described, it's radius was 50. Ran the condition and it returned false, changed the triggers radius to 500, it now returns the correct value, True. Looks like the closer they get to the triggers perimiter, the less chance they have of being included in ThisList.

Share this post


Link to post
Share on other sites
Kyle's condition works fine

smile_o.gif That's good to hear, was getting worried about my abilities. crazy_o.gif

Quote[/b] ]there looks like there is a problem with Triggers

That howver is not so good to hear. confused_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]That's good to hear, was getting worried about my abilities.

Lol..Well it's always good to get confirmation from another source, in cases like this.

Likewise, if someone could confirm the trigger problem?

Quote[/b] ]That howver is not so good to hear.

Chris Death wrote up some notes in OFP, about proximity to a triggers center and the order it populates ThisList. But nothing like this every happend.

Share this post


Link to post
Share on other sites

I tested Kyle's condition using a trigger with a radius of 40 and it worked fine.

Share this post


Link to post
Share on other sites
I tested Kyle's condition using a trigger with a radius of 40 and it worked fine.

biggrin_o.gif

So bravo 6 your problem must be somewhere else. You sure you're using the right names for the units?

Share this post


Link to post
Share on other sites
Kyle's condition works fine, there looks like there is a problem with Triggers. I setup a trigger with the two teams and civilian you described, it's radius was 50. Ran the condition and it returned false, changed the triggers radius to 500, it now returns the correct value, True. Looks like the closer they get to the triggers perimiter, the less chance they have of being included in ThisList.

i confirm!

tryed it and trigger got a problem.

I put 100 as radius and it worked fine smile_o.gif

Thank you very much for the time and help biggrin_o.gif

some of my missions will have those codes wink_o.gif

Tanks inlove.gif

edit: so there might be a bug because if i have a truck there and if one of the teams board that truck and the other team join that radius trigger it will not set of. thats why it was not working before. I ordered ais do get in truck and then i moved my team with civil to that truck and trigger din't set off.

if i don't use truck, trigger works fine. smile_o.gif

Share this post


Link to post
Share on other sites

Oh, forgot about vehicles... how about this then:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({(alive _X)&&((vehicle _X) in thislist)} count ((units team1)+(units team2)+[civil]))>=({alive _X} count ((units team1)+(units team2)+[civil]))

Now it will also work if any of them are in a vehicle. wink_o.gif

Share this post


Link to post
Share on other sites

Wow, exactly the same situation i had but it wasnt in Arma. Multiple teams and one east guy to capture. I had to detect if all were dead, if all were present somewhere or if all were present with the captive and even if they were inside a vehicle or not.

I dont know if this goes with Arma but Chris Death provided me great assistance in this thread, you might wanna check it smile_o.gif .

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×