{ if (side _x == east) then { _x addMPEventHandler ["MPKilled",{East setFriend [Resistance, 0]; }] }; } foreach allunits;