Hello,
I want to make a mechanised infantry squad dismount their transport (in the same group) at a SCRIPTED waypoint. Therefor I have the following script:
private["_group", "_i", "_vehicle"];
_group = _this select 0;
_units = units _group;
_vehicle = vehicle leader _group;
_group setFormation "VEE";
_group setSpeedMode "LIMITED";
{
if( (_x != gunner _vehicle) && (_x != driver _vehicle) && (_x != commander _vehicle)) then {
_x action["eject", _vehicle];
unassignVehicle _x;
[_x] allowGetIn false;
};
} foreach _units;
So basically everyone who is not crew in the vehicle should dismount but the script does not work and I have no idea why. I have ported the script from Ofp where it works perfectly.
Can you help me please?