Advertisement
Feuerex

Feuerex - Helicopters (Arma3)

Oct 11th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. // Made by Feuerex - Enjoy!;
  2.  
  3. //Get a soldier instantly into a helicopter;
  4. soldier AssignAsCargo helicopter; //registers the soldier in the helicopter and reserves a seat for him;
  5. soldier MoveInCargo helicopter; //moves him instantly in;
  6.  
  7. //Get out of the helicopter under normal conditions (when it lands);
  8. UnAssignVehicle soldier; //He leaves at the first opportunity;
  9.  
  10. //Remove/add the fuel;
  11. helicopter SetFuel 0;
  12. helicopter SetFuel 1;
  13. //Wait for a soldier to get in the heli;
  14. soldier in helicopter
  15. //script version;
  16. if (soldier in helicopter) then {
  17. //code;
  18. };
  19.  
  20. helicopter SetFlyHeight 10; //10 - in meters;
  21.  
  22. //check if the helicopter is two meters above the ground or less;
  23. position helicopter select 2 < 2 //watch my tutorial on coordinates to get more info about this command;
  24.  
  25. any = [helicopter,150] spawn BIS_fnc_UnitCapture;
  26.  
  27. /*script captured.sqf;
  28. a = //paste recorded data here;
  29. _any = [helicopter, a] spawn BIS_fnc_UnitPlay;
  30. //End of script
  31. */
  32.  
  33. any = [] execVM "captured.sqf";
  34. player Action ["EngineOn",helicopter]; //the player actually doesn't have to be in the helicopter to turn the engine on;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement