Dashers 0 Posted April 10, 2004 Hi, I'm trying to have a trigger that will activate when everybody listed is dead. This way I can end the mission automatically when nobody is left alive (multiplayer coop). Currently I have my playable characters as p1_1, p1_2, p2_1, etc etc. In my trigger I have the condition: !(alive p1_1) && !(alive p1_2)... etc Now this is all fine providing that the character existed in the first place. If there are some characters left and AI isn't turned on then the trigger won't work as these phatom characters never existed in the first place, so cannot be dead. Does anybody know of an effective way to achieve this? Cheers, Dash. Share this post Link to post Share on other sites
CrashnBurn 0 Posted April 10, 2004 um...wouldn't there be 1 left alive ? Who's gonna kill the last guy ? Share this post Link to post Share on other sites
Dashers 0 Posted April 10, 2004 Quote[/b] ](multiplayer coop) AI would! I've got it working anyway. I've just got in my init script: ? (alive p1_1) : a1_1 = true; For each of the human controllable players. Then added an event handler into each of these players to switch the boolean when they die. Just have the trigger conditions to !(a1_1) && !(a1_2)... and it will activate when there are no human controllable characters left. Now just to modify it to end if only AI characters are left. Share this post Link to post Share on other sites
T J 0 Posted April 10, 2004 Dont forget you can use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> !(alive PLAYER) To detect the player on each client, or to compare which unit is which etc. TJ Share this post Link to post Share on other sites