Jump to content
Sign in to follow this  
boby91

Forced engine ON in heli

Recommended Posts

Hi, I have script where heli land on smoke and wait for soldiers.. but the pilot switch his engine off.. Its somehow possible to force him not to do it??

Its little bit more realistic to see heli waiting with engine on.. :)

Thanks a lot.

Share this post


Link to post
Share on other sites

There is EngineOn command. you could make a loop that calls the command to keep engine on while waiting for troops to board.

 

Share this post


Link to post
Share on other sites

sry to ask in this thread.. but its kinda related. i been trying to figure out how to spawn a helikopter with engine on and revved up ready for takeoff? 

is there any command to rev up the engine?

Share this post


Link to post
Share on other sites
8 minutes ago, schmoking said:

sry to ask in this thread.. but its kinda related. i been trying to figure out how to spawn a helikopter with engine on and revved up ready for takeoff? 

is there any command to rev up the engine?

Spawn it flying and move it to the ground with

heli setPos (getPos heli select 0, getPos heli select 1, 0);
heli flyInHeight 0;

 

  • Like 1

Share this post


Link to post
Share on other sites
On 15.1.2017 at 7:00 PM, theend3r said:

Spawn it flying and move it to the ground with


heli setPos (getPos heli select 0, getPos heli select 1, 0);
heli flyInHeight 0;

 

 

i been trying to figure this out for awhile, with no luck.

when i spawn heli in air, it only start engine when its spawned.

 

?_v1 == "B_Heli_Light_01_armed_F":_Heli SetPos [_ux,_uy,_uz+750];

even at 750 meters it still falls to the ground.

 

entire script

Spoiler

_Unit=_this Select 0;
_Upos= GetPos _Unit;
_ux=_Upos Select 0;
_uy=_Upos Select 1;
_uz=_Upos Select 2;
_rand1=0+random 9;
_rn = (_rand1 + 0.5) - ((_rand1 + 0.5) Mod 1);
?_rn == 0: _v1="I_Heli_light_03_F";
?_rn == 1: _v1="B_Heli_Light_01_armed_F";
?_rn == 2: _v1="B_Heli_Attack_01_F";
?_rn == 3: _v1="O_Heli_Attack_02_black_F";
?_rn == 4: _v1="I_Plane_Fighter_03_AA_F";
?_rn == 5: _v1="I_Plane_Fighter_03_CAS_F";
?_rn == 6: _v1="B_Plane_CAS_01_F";
?_rn == 7: _v1="I_Heli_Transport_02_F";
?_rn == 8: _v1="O_Heli_Light_02_v2_F";
?_rn == 9: _v1="O_Plane_CAS_02_F";

          
_Heli=_v1 CreateVehicle _Upos;
_Heli SetDir Getdir _Unit;
_Unit MoveInDriver _Heli;
_Heli engineOn true;
_Heli Lock FALSE;


?_v1 == "I_Plane_Fighter_03_AA_F": _Heli SetPos [_ux,_uy,_uz+750]; _Heli AddWeapon "GBU12BombLauncher";  _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10"; _Heli AddMagazine "2Rnd_GBU12_LGB_MI10"; TVS= [_Heli,"Bo_GBU12_LGB_MI10"] execvm "TVS\scripts\init.sqf";


?_v1 == "I_Plane_Fighter_03_CAS_F": _Heli SetPos [_ux,_uy,_uz+750];_Heli AddWeapon "mortar_155mm_AMOS";  _Heli AddMagazine "2Rnd_155mm_Mo_Cluster"; _Heli AddMagazine "2Rnd_155mm_Mo_Cluster"; _Heli AddMagazine "2Rnd_GBU12_LGB_MI10"; _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10"; _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10"; TVS= [_Heli,"Bo_GBU12_LGB_MI10"] execvm "TVS\scripts\init.sqf";


?_v1 == "I_Heli_Transport_02_F":_Heli SetPos [_ux,_uy,_uz+750]; _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells";_Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles"; _Heli AddWeapon "GBU12BombLauncher";  _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";  TVS= [_Heli,"Bo_GBU12_LGB_MI10"] execvm "TVS\scripts\init.sqf";    

                        
?_v1 == "B_Plane_CAS_01_F": _Heli SetPos [_ux,_uy,_uz+750]; _Heli AddWeapon "GBU12BombLauncher";  _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";TVS= [_Heli,"Bo_GBU12_LGB_MI10"] execvm "TVS\scripts\init.sqf";


?_v1 == "O_Heli_Attack_02_black_F":_Heli SetPos [_ux,_uy,_uz+750];  _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells";_Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles";


?_v1 == "I_Heli_light_03_F": _Heli SetPos [_ux,_uy,_uz+750];  _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells"; _Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles"


?_v1 == "B_Heli_Light_01_armed_F":_Heli SetPos [_ux,_uy,_uz+750];   _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells"; _Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles";


?_v1 == "B_Heli_Attack_01_F":_Heli SetPos [_ux,_uy,_uz+750];  _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells"; _Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells";_Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles";


?_v1 == "O_Heli_Light_02_v2_F":_Heli SetPos [_ux,_uy,_uz+750]; _Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells";_Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles";                                 
?_v1 == "O_Plane_CAS_02_F": _Heli SetPos [_ux,_uy,_uz+750];_Heli AddWeapon "autocannon_40mm_CTWS";  _Heli AddMagazine "40Rnd_40mm_APFSDS_Tracer_Green_shells";_Heli AddMagazine "60Rnd_40mm_GPR_Tracer_Yellow_shells";_Heli AddWeapon "missiles_titan";  _Heli AddMagazine "5Rnd_GAT_missiles";_Heli AddWeapon "GBU12BombLauncher";  _Heli AddMagazine "2Rnd_GBU12_LGB_MI10";_Heli AddMagazine "2Rnd_GBU12_LGB_MI10";TVS= [_Heli,"Bo_GBU12_LGB_MI10"] execvm "TVS\scripts\init.sqf";

 

_Unit RemoveAction choppa;
_Unit RemoveAction plane;
_Unit RemoveAction tank;
_Unit RemoveAction boat;


#loop

~2
if (count crew _Heli<= 0) then {goto "timer"}
~2

goto "loop"

#timer
~30
if (count crew _Heli>= 1) then {goto "loop"}
~1

Vmenu = _Unit AddAction [("<t color='#FF9900'>" + "VehicleMenu" + "</t>"), "smenu\createveh.sqf",[],-95,false,false,"","player ==_target"];


exit; 

 

 

i also tried _heli flyInHeight 750; and    _Heli forcespeed 300;  but i think they may only work on arma2.

 

Share this post


Link to post
Share on other sites

Change: 

_Heli=_v1 CreateVehicle _Upos;

To:

_Heli=createVehicle [_v1, _Upos, [], 0, "FLY"];

 

  • Like 1

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  

×