brujo22

Untitled

Oct 31st, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 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. // 10 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_Armory", [], "Exile_Trader_Armory", "WhiteHead_11", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [4769.83, 2595.59, 8.75843], [-0.999895, 0.0144734, 0], [0, 0, 1]],
  11. ["Exile_Trader_Equipment", [], "Exile_Trader_Equipment", "AfricanHead_03", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","G_Combat",[],["","","","","",""]], [4765.56, 2587.29, 8.75843], [-0.485422, 0.87428, 0], [0, 0, 1]],
  12. ["Exile_Trader_Food", [], "Exile_Trader_Food", "AfricanHead_01", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [4747.7, 2604.79, 8.75843], [0.99947, 0.0325438, 0], [0, 0, 1]],
  13. ["Exile_Trader_Hardware", [], "Exile_Trader_Hardware", "WhiteHead_02", [[],[],[],["U_C_WorkerCoveralls",[]],["V_BandollierB_rgr",[]],["B_UAV_01_backpack_F",[]],"H_Booniehat_khk_hs","",[],["","","","","",""]], [4744.76, 2598.45, 8.75843], [0.942781, -0.333412, 0], [0, 0, 1]],
  14. ["Exile_Trader_Office", [], "Exile_Trader_Office", "WhiteHead_07", [[],[],[],["U_I_G_resistanceLeader_F",[]],["V_Rangemaster_belt",[]],[],"H_Hat_brown","",[],["","","","","",""]], [4766.24, 2612.92, 8.75843], [-0.501939, -0.864903, 0], [0, 0, 1]],
  15. ["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_17", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Tactical_Clear",[],["","","","","",""]], [4730.76, 2551.01, 8.9783], [0.483023, 0.875608, 0], [0, 0, 1]],
  16. ["Exile_Trader_Vehicle", [], "Exile_Trader_Vehicle", "WhiteHead_01", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","G_Combat",[],["","","","","",""]], [4730.8, 2573.37, 8.76961], [0.711497, -0.702689, 0], [0, 0, 1]],
  17. ["Exile_Trader_VehicleCustoms", [], "Exile_Trader_VehicleCustoms", "AfricanHead_02", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [4729.28, 2570.17, 8.89369], [0.964283, -0.264872, 0], [0, 0, 1]],
  18. ["Exile_Trader_Aircraft", [], "Exile_Trader_Aircraft", "WhiteHead_18", [[],[],[],["U_I_pilotCoveralls",[]],[],[],"H_PilotHelmetHeli_O","",[],["","","","","",""]], [4748.39, 2559.79, 8.96603], [-0.700706, 0.71345, 0], [0, 0, 1]],
  19. ["Exile_Trader_AircraftCustoms", [], "Exile_Trader_AircraftCustoms", "GreekHead_A3_05", [[],[],[],["Exile_Uniform_ExileCustoms",[]],["V_RebreatherB",[]],[],"H_PilotHelmetFighter_B","",[],["","","","","",""]], [4749.89, 2561.96, 8.90591], [-0.99934, 0.0363175, 0], [0, 0, 1]]
  20. ];
  21.  
  22. {
  23. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  24. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  25. private _animations = _x select 1;
  26.  
  27. _logic setPosWorld (_x select 5);
  28. _logic setVectorDirAndUp [_x select 6, _x select 7];
  29.  
  30. _trader setVariable ["BIS_enableRandomization", false];
  31. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  32. _trader setVariable ["ExileAnimations", _animations];
  33. _trader setVariable ["ExileTraderType", _x select 2];
  34. _trader disableAI "ANIM";
  35. _trader disableAI "MOVE";
  36. _trader disableAI "FSM";
  37. _trader disableAI "AUTOTARGET";
  38. _trader disableAI "TARGET";
  39. _trader disableAI "CHECKVISIBLE";
  40. _trader allowDamage false;
  41. _trader setFace (_x select 3);
  42. _trader setUnitLoadOut (_x select 4);
  43. _trader setPosWorld (_x select 5);
  44. _trader setVectorDirAndUp [_x select 6, _x select 7];
  45. _trader reveal _logic;
  46. _trader attachTo [_logic, [0, 0, 0]];
  47. _trader switchMove (_animations select 0);
  48. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  49. }
  50. forEach _npcs;
Add Comment
Please, Sign In to add comment