brujo22

Untitled

Oct 31st, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 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. // 4 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_SpecialOperations", [], "Exile_Trader_SpecialOperations", "WhiteHead_01", [["arifle_MX_Black_F","","","",[],[],""],[],[],["U_B_CTRG_1",[]],["V_PlateCarrierGL_blk",[]],["B_Parachute",[]],"H_HelmetB_light_black","G_Balaclava_lowprofile",[],["","","","","","NVGoggles_OPFOR"]], [1612.39, 7807.3, 284.778], [-0.993384, -0.114844, 0], [0, 0, 1]],
  11. ["Exile_Guard_01", [], "", "AfricanHead_01", [["srifle_DMR_03_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_TacVest_khk",[]],[],"H_ShemagOpen_tan","G_Combat",[],["","","","","",""]], [1626.06, 7793.96, 284.19], [0.0582724, -0.998301, 0], [0, 0, 1]],
  12. ["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_05", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Combat",[],["","","","","",""]], [1622.14, 7799.27, 284.382], [-0.175259, -0.984522, 0], [0, 0, 1]],
  13. ["Exile_Guard_03", [], "", "WhiteHead_21", [["SMG_02_F","","","",[],[],""],[],[],["U_BG_Guerilla2_3",[]],["V_TacVestIR_blk",[]],[],"H_Bandanna_camo","G_Squares_Tinted",[],["","","","","",""]], [1598.98, 7790.24, 283.978], [0.925742, 0.378156, 0], [0, 0, 1]]
  14. ];
  15.  
  16. {
  17. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  18. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  19. private _animations = _x select 1;
  20.  
  21. _logic setPosWorld (_x select 5);
  22. _logic setVectorDirAndUp [_x select 6, _x select 7];
  23.  
  24. _trader setVariable ["BIS_enableRandomization", false];
  25. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  26. _trader setVariable ["ExileAnimations", _animations];
  27. _trader setVariable ["ExileTraderType", _x select 2];
  28. _trader disableAI "ANIM";
  29. _trader disableAI "MOVE";
  30. _trader disableAI "FSM";
  31. _trader disableAI "AUTOTARGET";
  32. _trader disableAI "TARGET";
  33. _trader disableAI "CHECKVISIBLE";
  34. _trader allowDamage false;
  35. _trader setFace (_x select 3);
  36. _trader setUnitLoadOut (_x select 4);
  37. _trader setPosWorld (_x select 5);
  38. _trader setVectorDirAndUp [_x select 6, _x select 7];
  39. _trader reveal _logic;
  40. _trader attachTo [_logic, [0, 0, 0]];
  41. _trader switchMove (_animations select 0);
  42. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  43. }
  44. forEach _npcs;
Advertisement
Add Comment
Please, Sign In to add comment