
Originally Posted by
tryteyker
My Eject.sqf:
_group = _this select 0;
_vehicle = _this select 1;
if ( (typename _group != "grpAlpha") or (typename _vehicle != "UAZ") ) exitwith {
hintSilent "Invalid Parameters parsed";
};
sleep 1;
{
unassignvehicle _x;
_x action ["EJECT", _vehicle];
sleep 0.5;
} foreach units _group;
So, what am I doing wrong? I really have no clue.
Remove RED operators and quotes (blue)
Code:
_group = _this select 0;
_vehicle = _this select 1;
if ( (typename _group != grpAlpha) or (typename _vehicle != UAZ) ) exitwith {
hintSilent "Invalid Parameters parsed";
};
sleep 1;
{
unassignvehicle _x;
_x action ["EJECT", _vehicle];
sleep 0.5;
} foreach units _group;