global corps 0 Posted July 3, 2004 in my mission i need a trigger like, if im present and man1 or man2 or man3 present the trigger will activate.. I need me and atleast one other group in the trigger, for it to activate. I dont know how to make this work, can someone please explain (in detail) how to get this to work? Share this post Link to post Share on other sites
CrashnBurn 0 Posted July 3, 2004 trigger should be of type: Anybody Present condition: (vehicle player) in thislist && (vehicle man1) in thislist && (alive player) && (alive man1) or (vehicle player) in thislist && (vehicle man2) in thislist && (alive player) && (alive man2) or (vehicle player) in thislist && (vehicle man3) in thislist && (alive player) && (alive man3) Share this post Link to post Share on other sites
global corps 0 Posted July 4, 2004 i have 3 group leaders with " man1= group this; man2, man3 " ok, i made a trigger anybody present, type none and in condition i pasted " (vehicle player) in thislist && (vehicle man1) in thislist && (alive player) && (alive man1) or (vehicle player) in thislist && (vehicle man2) in thislist && (alive player) && (alive man2) or (vehicle player) in thislist && (vehicle man3) in thislist && (alive player) && (alive man3) " and in game i got an error. im a little slow.. I got a new problem now, i want a trigger that, when " (count units man1) == 0 && (count units man2) == 0 && (count units man3) == 0 " you loose the mission, but when they all die, the trigger never activates.. (i have (count units man1) == 0 on another mission and mission ends when they die but i cant get to work on this one with 3 groups dieing) Share this post Link to post Share on other sites
CrashnBurn 0 Posted July 4, 2004 You didnt say man1 was a group name. You said it was a unit name...duh! Make a trigger for each group and group the trigger to the leader of each group. After you group the trigger you'll see new options for who is and who's not in the trigger area. Now you can make a variable true for each group that enters their triggers. A final trigger that holds the variables can make the mission end. For the other problem, you need to count live units like so: (("Alive _x" count units man1) == 0) && (("Alive _x" count units man2) == 0) && (("Alive _x" count units man3) == 0) Share this post Link to post Share on other sites
global corps 0 Posted July 4, 2004 Quote[/b] ]You didnt say man1 was a group name. You said it was a unit name...duh! Make a trigger for each group and group the trigger to the leader of each group. After you group the trigger you'll see new options for who is and who's not in the trigger area. Now you can make a variable true for each group that enters their triggers. A final trigger that holds the variables can make the mission end. i got man1-3 with a grouped trigger, activation is, any group member. now what else do i need?(i dont rely understand) thx for replying (its for, i clear a town and 3 groups come after its cleard and the first one there gives me new orders, so on all the grouped triggers have the same effect, text and camera angles, i dont want all 3 triggers to activate after the first one activates, if it helps) THX for the (("Alive _x" count units man1) == 0) && (("Alive _x" count units man2) == 0) && (("Alive _x" count units man3) == 0) line, it worked perfectly! Share this post Link to post Share on other sites
CrashnBurn 0 Posted July 4, 2004 Ok what you want to do is make a variable come true when each group gets to the triggers. In the condition of each trigger add a variable: ! arrived So the full condition would be: this && ! arrived In the activation of each trigger put arrived=true In your mission init.sqs or the player unit initialization put: arrived=false Now when the first group hits the trigger, the condition "arrived" becomes true and the other 2 triggers won't be able to activate because the condition "arrived" is no longer false. Get it ? Share this post Link to post Share on other sites
global corps 0 Posted July 4, 2004 thx that works, now for my last question, How do i make their triggers activate when im in the zone too? i made another trigger grouped to the player; group leader, repeat, on act, t1=true and then on the 3 other triggers i had; this && ! arrived && t1. but when i go in my trigger and then leave the area the other !arrive triggers go off. is there a && player or something? Share this post Link to post Share on other sites
global corps 0 Posted July 4, 2004 I got it to work by, putting t1=false in the deactivation. THANK YOU so much for helping me out! Share this post Link to post Share on other sites