Hi all, i 'm creating a sqf file that spawns a heli, with a driver inside, but the guy spawns on the ground, and the heli in the air, and fall.
This is the part of the code that i use:
// spawn the vehicles
if ( true ) then
{
// spawn the first heli
_heli1 = createVehicle ["O_Heli_Light_02_unarmed_F", getMarkerPos "HeliPosition1", [], 0, "FLY"]; // works
hint "Heli in position";
sleep 2;
_pilot1 = "O_helicrew_F" createUnit [getMarkerPos "HeliPosition1",GroupHeli1];
_pilot1 moveInDriver _heli1;
hint "_pilot1 in Heli1";
sleep 2;
};
I tried a lot of other functions, but no result, as assignAsDriver
thx for your help.