Jump to content
Sign in to follow this  
tryphon

Spawning helicopter in flying mode with driver

Recommended Posts

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.

Edited by tryphon

Share this post


Link to post
Share on other sites

thx, i' ve tried this code:

   // Spawn a flying UAV with crew. 
  _heli1 = [getMarkerPos "HeliPosition1", 0, "O_Heli_Light_02_unarmed_F", GroupHeli1] call BIS_fnc_spawnVehicle; 
  createVehicleCrew (_heli1 select 0);
  hint "Heli in position";
  sleep 2;

It' s finaly working

now, i' m gonna make it move and land, thx for reply.:)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×