tryphon 10 Posted October 8, 2013 (edited) 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 October 8, 2013 by tryphon Share this post Link to post Share on other sites
super-truite 54 Posted October 8, 2013 You can try with createVehiclecrew: https://community.bistudio.com/wiki/createVehicleCrew Share this post Link to post Share on other sites
tryphon 10 Posted October 8, 2013 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