brujo22

Untitled

Nov 3rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. /**
  2. * Created with Exile Mod 3DEN Plugin
  3. * www.exilemod.com
  4. */
  5.  
  6. if (!hasInterface || isServer) exitWith {};
  7.  
  8. // 9 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_Armory", [], "Exile_Trader_Armory", "WhiteHead_16", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [3999.8, 11660.1, 361.352], [-0.028114, -0.999605, 0], [0, 0, 1]],
  11. ["Exile_Trader_Equipment", [], "Exile_Trader_Equipment", "WhiteHead_05", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","G_Tactical_Clear",[],["","","","","",""]], [4003.88, 11657.2, 361.505], [-0.98833, -0.152327, 0], [0, 0, 1]],
  12. ["Exile_Trader_Food", [], "Exile_Trader_Food", "WhiteHead_14", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Aviator",[],["","","","","",""]], [3985.39, 11660.3, 360.318], [0.527211, -0.849735, 0], [0, 0, 1]],
  13. ["Exile_Trader_Hardware", [], "Exile_Trader_Hardware", "GreekHead_A3_07", [[],[],[],["U_C_WorkerCoveralls",[]],["V_BandollierB_rgr",[]],["B_UAV_01_backpack_F",[]],"H_Booniehat_khk_hs","G_Tactical_Clear",[],["","","","","",""]], [3990.85, 11660.4, 360.714], [0.0461016, -0.998937, 0], [0, 0, 1]],
  14. ["Exile_Trader_Office", [], "Exile_Trader_Office", "GreekHead_A3_07", [[],[],[],["U_I_G_resistanceLeader_F",[]],["V_Rangemaster_belt",[]],[],"H_Hat_brown","G_Tactical_Clear",[],["","","","","",""]], [3993.36, 11640.4, 360.433], [0, 1, 0], [0, 0, 1]],
  15. ["Exile_Trader_VehicleCustoms", [], "Exile_Trader_VehicleCustoms", "WhiteHead_12", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Black",[],["","","","","",""]], [4043.56, 11669.6, 364.329], [0.470984, -0.882142, 0], [0, 0, 1]],
  16. ["Exile_Trader_Vehicle", [], "Exile_Trader_Vehicle", "WhiteHead_02", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","G_Aviator",[],["","","","","",""]], [4047.66, 11669.4, 364.511], [-0.197949, -0.980212, 0], [0, 0, 1]],
  17. ["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_11", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Combat",[],["","","","","",""]], [4041.92, 11648.6, 363.286], [0, 1, 0], [0, 0, 1]],
  18. ["Exile_Guard_02", [], "", "WhiteHead_02", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","G_Tactical_Clear",[],["","","","","",""]], [3984.92, 11650.1, 362.545], [-0.562964, -0.826482, 0], [0, 0, 1]]
  19. ];
  20.  
  21. {
  22. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  23. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  24. private _animations = _x select 1;
  25.  
  26. _logic setPosWorld (_x select 5);
  27. _logic setVectorDirAndUp [_x select 6, _x select 7];
  28.  
  29. _trader setVariable ["BIS_enableRandomization", false];
  30. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  31. _trader setVariable ["ExileAnimations", _animations];
  32. _trader setVariable ["ExileTraderType", _x select 2];
  33. _trader disableAI "ANIM";
  34. _trader disableAI "MOVE";
  35. _trader disableAI "FSM";
  36. _trader disableAI "AUTOTARGET";
  37. _trader disableAI "TARGET";
  38. _trader disableAI "CHECKVISIBLE";
  39. _trader allowDamage false;
  40. _trader setFace (_x select 3);
  41. _trader setUnitLoadOut (_x select 4);
  42. _trader setPosWorld (_x select 5);
  43. _trader setVectorDirAndUp [_x select 6, _x select 7];
  44. _trader reveal _logic;
  45. _trader attachTo [_logic, [0, 0, 0]];
  46. _trader switchMove (_animations select 0);
  47. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  48. }
  49. forEach _npcs;
Add Comment
Please, Sign In to add comment