brujo22

Untitled

Nov 1st, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 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. // 2 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_06", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","",[],["","","","","",""]], [12909.5, 12769.2, 209.751], [0.0414669, -0.99914, 0], [0, 0, 1]],
  11. ["Exile_Trader_SpecialOperations", [], "Exile_Trader_SpecialOperations", "WhiteHead_15", [["arifle_MX_Black_F","","","",[],[],""],[],[],["U_B_CTRG_1",[]],["V_PlateCarrierGL_blk",[]],["B_Parachute",[]],"H_HelmetB_light_black","G_Balaclava_lowprofile",[],["","","","","","NVGoggles_OPFOR"]], [12920.4, 12772, 210.418], [-0.0155424, -0.999879, 0], [0, 0, 1]]
  12. ];
  13.  
  14. {
  15. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  16. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  17. private _animations = _x select 1;
  18.  
  19. _logic setPosWorld (_x select 5);
  20. _logic setVectorDirAndUp [_x select 6, _x select 7];
  21.  
  22. _trader setVariable ["BIS_enableRandomization", false];
  23. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  24. _trader setVariable ["ExileAnimations", _animations];
  25. _trader setVariable ["ExileTraderType", _x select 2];
  26. _trader disableAI "ANIM";
  27. _trader disableAI "MOVE";
  28. _trader disableAI "FSM";
  29. _trader disableAI "AUTOTARGET";
  30. _trader disableAI "TARGET";
  31. _trader disableAI "CHECKVISIBLE";
  32. _trader allowDamage false;
  33. _trader setFace (_x select 3);
  34. _trader setUnitLoadOut (_x select 4);
  35. _trader setPosWorld (_x select 5);
  36. _trader setVectorDirAndUp [_x select 6, _x select 7];
  37. _trader reveal _logic;
  38. _trader attachTo [_logic, [0, 0, 0]];
  39. _trader switchMove (_animations select 0);
  40. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  41. }
  42. forEach _npcs;
Advertisement
Add Comment
Please, Sign In to add comment