vicSpawner.sqf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. _this setvariable ["Unit","swop_LAAT",false];
  2. _this setvariable ["height",1,flase];
  3. _this setvariable ["launchPad",pad_middle,true];
  4. _this addAction ["<t color='#FF0000'>DO NOT USE IF YOU ARE NOT A PILOT</t>",
  5. {
  6. }
  7. ];
  8. _this addAction ["<t color='#00FF00'>Laat MK1</t>",
  9. {
  10. (_this select 0) setvariable ["Unit","swop_LAAT",false];
  11. }
  12. ];
  13. _this addAction ["<t color='#00FF00'>Laat MK2</t>",
  14. {
  15. (_this select 0) setvariable["Unit","swop_LAATmk2",false];
  16. }
  17. ];
  18. _this addAction ["<t color='#F4A460 '>Laat MK2 74th</t>",
  19. {
  20. (_this select 0) setvariable["Unit","swop_LAATmk2_74",false];
  21. }
  22. ];
  23. _this addAction ["<t color='#0000FF'>Laat MK2 104th</t>",
  24. {
  25. (_this select 0) setvariable["Unit","swop_LAATmk2_104",false];
  26. }
  27. ];
  28. _this addAction ["<t color='#FF0000'>Laat MK2 Spec Op</t>",
  29. {
  30. (_this select 0) setvariable["Unit","swop_LAATmk2_spec",false];
  31. }
  32. ];
  33. _this addAction ["<t color='#00f9ff'>Laat MK2 ARC</t>",
  34. {
  35. (_this select 0) setvariable["Unit","swop_LAATmk2_ARC",false];
  36. }
  37. ];
  38. _this addAction ["<t color='#0000FF'>Laat Cargo</t>",
  39. {
  40. (_this select 0) setvariable["Unit","swop_LAAT_cargo",false];
  41. }
  42. ];
  43. _this addAction ["<t color='#FF0000'>ARC-170</t>",
  44. {
  45. (_this select 0) setvariable["Unit","swop_arc_t",false];
  46. }
  47. ];
  48. _this addAction ["<t color='#FFFF00'>Y-Wing</t>",
  49. {
  50. (_this select 0) setvariable["Unit","swop_ywclones",false];
  51. }
  52. ];
  53. _this addAction ["Spawn Vehicle",
  54. {
  55. _item=(_this select 0) getVariable "Unit";
  56. _Z= (_this select 0) getVariable "height";
  57. pad=(_this select 0) getVariable "launchPad";
  58. _unit=createVehicle [_item, [(getPos pad select 0), (getPos pad select 1), (getPos pad select 2)+_Z], [], 0,"CAN_COLLIDE"];
  59. _unit setDir (getDir pad);
  60. hint format["pad %1 unit %2",(pad),(_unit)];
  61. }
  62. ];