I've seen this website before. Where on this website is the solution for me? What do I do wrong?
I tried this but it doesn't work:
_car1 = ["B_MRAP_01_hmg_F", getPos player, 180, west,[], 0,"NONE"] call BIS_fnc_spawnVehicle;
{ _car1 deleteVehicleCrew _x } forEach crew _car1;
I got this error:
{ _car1 deleteVehicleCrew _x } forEach crew _car1;
Error Generic error in expression
The vehicle spawned, but the cerw is inside.
UPDATE:
sorry, I didn't focus enough: the deleteVehicleCrew command only works with the createVehicle command:
_car1 = "B_MRAP_01_hmg_F" createVehicle position player;
{_car1 deleteVehicleCrew _x} forEach crew _car1;
It works, thank You for Your help Harzach. 🙂