10-29-2011, 07:22 PM
(This post was last modified: 10-29-2011, 07:24 PM by Pulverizer.)
Something like
groupA = [guy1, guy2];
groupB = [civ1, civ2, civ3];
ROEhandler = { if(_this select 1 in groupA) then {activateMyEndTrigger=true; hint format [{%1 killed a civ and the mission will now end.}, _this select 1];} else {hint {A civilian has died!};};};
{_x addMPeventhandler [{MPKilled}, {foo=_this call ROEhandler;}]} foreach units groupB;
Then make a trigger that ends the mission with condition activateMyEndTrigger with some time delay so you can actually read the hint message.
groupA = [guy1, guy2];
groupB = [civ1, civ2, civ3];
ROEhandler = { if(_this select 1 in groupA) then {activateMyEndTrigger=true; hint format [{%1 killed a civ and the mission will now end.}, _this select 1];} else {hint {A civilian has died!};};};
{_x addMPeventhandler [{MPKilled}, {foo=_this call ROEhandler;}]} foreach units groupB;
Then make a trigger that ends the mission with condition activateMyEndTrigger with some time delay so you can actually read the hint message.