Guest User

Wander Fall

a guest
May 26th, 2014
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Script: wander_fall.sqf
  3. Author: Arctor
  4.  
  5. Use example:
  6. place in init.sqf -
  7. player addAction ["Drop Wander Panzer","_this execVM ""wander_fall.sqf""",true,800,false,true,"","(vehicle _this == _target)"];
  8. */
  9.  
  10. _gen = _this select 0;
  11. _caller = _this select 1;
  12. _id = _this select 2;
  13.  
  14. _gen removeAction _id;
  15.  
  16. _arr =
  17. [ "WAP_03_NATO_AS",
  18. "WAP_02_NATO_AS",
  19. "WAP_02_NATO_AS_2",
  20. "WAP_02_NATO_GN",
  21. "WAP_02_NATO_LC"
  22. ];
  23.  
  24. _wp = _arr select floor random count _arr;
  25. _pos = [getPosATL _caller select 0, getPosATL player select 1, 200];
  26. _wap = createVehicle [_wp, _pos, [], 15, "NONE"];
  27.  
  28. _shell_inc_1 = createVehicle ["IncinerateShell", _pos, [], 15, "NONE"];
  29. _shell_inc_1 attachTo [_wap,[1.3,0,0]];
  30.  
  31. _shell_smk_1 = createVehicle ["SmokeShell", _pos, [], 15, "NONE"];
  32. _shell_smk_1 attachTo [_wap,[1.3,0,0]];
  33.  
  34. _shell_inc_2 = createVehicle ["IncinerateShell", _pos, [], 15, "NONE"];
  35. _shell_inc_2 attachTo [_wap,[-1.3,0,0]];
  36.  
  37. _shell_smk_2 = createVehicle ["SmokeShell", _pos, [], 15, "NONE"];
  38. _shell_smk_2 attachTo [_wap,[-1.3,0,0]];
  39.  
  40. waitUntil {isTouchingGround _wap};
  41. deleteVehicle _shell_inc_1;
  42. deleteVehicle _shell_smk_1;
  43. deleteVehicle _shell_inc_2;
  44. deleteVehicle _shell_smk_2;
  45.  
  46. waitUntil {!alive _wap};
  47.  
  48. player addAction
  49. [ "Drop Wander Panzer",
  50. "_this execVM ""wander_fall.sqf""",
  51. true,
  52. 800,
  53. false,
  54. true,
  55. "",
  56. " (vehicle _this == _target)
  57. "
  58. ];
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×