Griffy 0 Posted October 20, 2003 In the trigger field, you can select for example when east is not present to end the map. However i cant find a way to do it for single units. I have 2 pilots that i want the mission to end when they die. If anyone can help me with this id appreciate it , as its the last thing i need to do before ive finished my mission Share this post Link to post Share on other sites
benu 1 Posted October 20, 2003 Many possibilites. Name the pilots and let a script check if they are still alive, set a global variable else that triggers end of mission. Or do something like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> pilot1 addEventHandler ["killed",p1_dead=true; publicvariable p1_dead] pilot2 addEventHandler ["killed",p2_dead=true; publicvariable p2_dead] And make an endmission trigger that triggers when "p1_dead AND p2_dead"... Share this post Link to post Share on other sites
bn880 5 Posted October 20, 2003 And also you can group the trigger to the pilot(s). Then you get them in the dropdown list just like East. (I think it's unit, or any group member). And dozens of other ways. Share this post Link to post Share on other sites
Griffy 0 Posted October 20, 2003 Thanks chaps , simple when you know how eh ;) Share this post Link to post Share on other sites
Tobi-Wan Kenobi 0 Posted October 21, 2003 That's easy. Name your units, e.g. p1 and p2. Then create a trigger and in the, on activation field type NOT (alive P1) AND NOT (alive p2), and there you go. Share this post Link to post Share on other sites