brujo22

mission_test_initServer

May 15th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. /**
  2. * Created with Exile Mod 3DEN Plugin
  3. * www.exilemod.com
  4. */
  5.  
  6. ExileRouletteChairs = [];
  7. ExileRouletteChairPositions = [];
  8.  
  9. // 6 Vehicles
  10. private _vehicles = [
  11. ["TK_GUE_WarfareBBarrier5x_EP1", [865.247, 10466.9, 418.971], [-0.42042, 0.904191, -0.075404], [-0.26784, -0.0442748, 0.962446], true],
  12. ["TK_GUE_WarfareBBarrier5x_EP1", [860.604, 10476.6, 417.777], [-0.420419, 0.898046, -0.129466], [-0.267845, 0.0134916, 0.963367], true],
  13. ["TK_GUE_WarfareBBarrier5x_EP1", [856.836, 10468.9, 415.918], [0.814583, 0.44664, 0.370092], [-0.377769, -0.0756704, 0.922803], true],
  14. ["TK_GUE_WarfareBBarrier5x_EP1", [868.796, 10474.1, 419.768], [0.865096, 0.481988, 0.138907], [-0.182862, 0.0451726, 0.9821], true],
  15. ["B_APC_Tracked_01_CRV_F", [841.259, 10463, 412.439], [0, 0.999968, -0.0080009], [-0.244362, 0.00775834, 0.969653], true],
  16. ["B_HMG_01_high_F", [862.052, 10471.8, 419.312], [0, 0.997829, 0.0658558], [-0.325288, -0.0622742, 0.943562], true]
  17. ];
  18.  
  19. {
  20. private _vehicle = (_x select 0) createVehicle (_x select 1);
  21. _vehicle allowDamage false;
  22. _vehicle setPosWorld (_x select 1);
  23. _vehicle setVectorDirAndUp [_x select 2, _x select 3];
  24. _vehicle enableSimulationGlobal (_x select 4);
  25. _vehicle setVariable ["ExileIsLocked", -1, true];
  26.  
  27. if (_vehicle isKindOf "Exile_RussianRouletteChair") then
  28. {
  29. ExileRouletteChairs pushBack _vehicle;
  30. ExileRouletteChairPositions pushBack [_x select 1, getDir _vehicle];
  31. };
  32. }
  33. forEach _vehicles;
  34.  
  35. // 0 Simple Objects
  36. private _invisibleSelections = ["zasleh", "zasleh2", "box_nato_grenades_sign_f", "box_nato_ammoord_sign_f", "box_nato_support_sign_f"];
  37. private _simpleObjects = [
  38.  
  39. ];
  40.  
  41. {
  42. private _simpleObject = createSimpleObject [_x select 0, _x select 1];
  43. _simpleObject setVectorDirAndUp [_x select 2, _x select 3];
  44.  
  45. {
  46. if ((toLower _x) in _invisibleSelections) then
  47. {
  48. _simpleObject hideSelection [_x, true];
  49. };
  50. }
  51. forEach (selectionNames _simpleObject);
  52. }
  53. forEach _simpleObjects;
Advertisement
Add Comment
Please, Sign In to add comment