bravo 6 0 Posted December 29, 2006 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
Big Dawg KS 6 Posted December 29, 2006 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... Share this post Link to post Share on other sites
mattxr 9 Posted December 29, 2006 Suma: I want to make... i never seen something like this in my hole life We are here also to help you know.. let Suma get on with patches/Game 2 Edit: ^ What he said Share this post Link to post Share on other sites
bravo 6 0 Posted December 30, 2006 lol i meant suma as at bottom of line.. as in conclusion. All help are wellcome thank you very much, ill test it edit: typo Share this post Link to post Share on other sites
bravo 6 0 Posted December 30, 2006 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.. anymore ideas? Share this post Link to post Share on other sites
Big Dawg KS 6 Posted December 30, 2006 How's the rest of your trigger set up? Share this post Link to post Share on other sites
bravo 6 0 Posted December 30, 2006 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
surpher 1 Posted December 30, 2006 Try this: activation: anybody count thisList >= (count units team1) + (count units team2) Share this post Link to post Share on other sites
Big Dawg KS 6 Posted December 30, 2006 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: anybodycount 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
bravo 6 0 Posted December 30, 2006 <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 Share this post Link to post Share on other sites
Big Dawg KS 6 Posted December 30, 2006 Is your trigger set to repeatedly? Share this post Link to post Share on other sites
bravo 6 0 Posted December 30, 2006 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
Big Dawg KS 6 Posted December 30, 2006 Is your trigger set to repeatedly? no, its set to once Then try repeatedly. Share this post Link to post Share on other sites
bravo 6 0 Posted December 30, 2006 Is your trigger set to repeatedly? no, its set to once Then try repeatedly. as i edited you posted.. tryed both and still not working. Share this post Link to post Share on other sites
UNN 0 Posted December 31, 2006 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
Big Dawg KS 6 Posted December 31, 2006 Kyle's condition works fine That's good to hear, was getting worried about my abilities. Quote[/b] ]there looks like there is a problem with Triggers That howver is not so good to hear. Share this post Link to post Share on other sites
UNN 0 Posted December 31, 2006 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
surpher 1 Posted December 31, 2006 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
Big Dawg KS 6 Posted December 31, 2006 I tested Kyle's condition using a trigger with a radius of 40 and it worked fine. 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
bravo 6 0 Posted December 31, 2006 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 Thank you very much for the time and help some of my missions will have those codes Tanks 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. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted December 31, 2006 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. Share this post Link to post Share on other sites
Heatseeker 0 Posted December 31, 2006 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 . Share this post Link to post Share on other sites