Gewöhnt euch doch mal an Schleifen auf jeden Fall im .sqf zu schreiben!
Code:
_flugzeug = _this select 0;
_wer = _this select 1;
_id = _this select 2;
_besatzung = crew _flugzeug;
_pilot = driver _flugzeug;
_gunner = gunner _flugzeug;
_j = count crew _flugzeug;
_i = 0;
? (!(Player in _flugzeug)) exitWith{hint "Get in first!"};
? (driver _flugzeug != Player) exitWith{hint "You are not a pilot!"};
While {alive _flugzeug} do {
_springer = (_besatzung select _i);
? (_springer == _pilot) exitWith{};
? (_springer == _gunner) exitWith{};
? (_i < _j) then {
_springer action ["EJECT", _flugzeug];
_i = _i + 1;
} else {
exitwith{};
};
sleep 0.5;
};
_flugzeug removeAction _id;