params ["_start","_veh"];
_veh setVelocity [0,0,0];
_veh turretUnit [0] setPos (_start getRelPos [2, 180]);
{_x setPos (_start getRelPos [2, 180]);} forEach ((fullCrew _veh) apply {_x select 0});
{_x setPos (_start getRelPos [2, 180]);} forEach (nearestObjects [getPos _veh,["Man"],15]);
uisleep 0.2;
if (alive _veh ) then { deleteVehicle _veh } else {};
I'm trying to move everyone out of a vehicle as well as everyone close to the vehicle. The script above works mostly. However for some reason copilot seats never get moved out of the helicopter.
I added "_veh turretUnit [0] setPos (_start getRelPos [2, 180]);" in an attempt to get the copilot seat but no cigar.
I have no idea why only the copilot seat doesn't work (even on vanilla vehicles).
Does anybody know what is going wrong here?