Guest User

Untitled

a guest
Jul 2nd, 2017
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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. // 3 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_CommunityCustoms", [], "Exile_Trader_Vehicle", "WhiteHead_14", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [9215.02, 9857.78, 46.7585], [0, 1, 0], [0, 0, 1]],
  11. ["Exile_Trader_CommunityCustoms2", [], "Exile_Trader_Equipment", "WhiteHead_17", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","",[],["","","","","",""]], [9230.5, 9845.02, 47.272], [-0.278153, 0.960537, 0], [0, 0, 1]],
  12. ["Exile_Trader_CommunityCustoms3", [], "Exile_Trader_Armory", "WhiteHead_20", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Black",[],["","","","","",""]], [9226.61, 9846.73, 47.2723], [0, 1, 0], [0, 0, 1]]
  13. ];
  14.  
  15. {
  16. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  17. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  18. private _animations = _x select 1;
  19.  
  20. _logic setPosWorld (_x select 5);
  21. _logic setVectorDirAndUp [_x select 6, _x select 7];
  22.  
  23. _trader setVariable ["BIS_enableRandomization", false];
  24. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  25. _trader setVariable ["ExileAnimations", _animations];
  26. _trader setVariable ["ExileTraderType", _x select 2];
  27. _trader disableAI "ANIM";
  28. _trader disableAI "MOVE";
  29. _trader disableAI "FSM";
  30. _trader disableAI "AUTOTARGET";
  31. _trader disableAI "TARGET";
  32. _trader disableAI "CHECKVISIBLE";
  33. _trader allowDamage false;
  34. _trader setFace (_x select 3);
  35. _trader setUnitLoadOut (_x select 4);
  36. _trader setPosWorld (_x select 5);
  37. _trader setVectorDirAndUp [_x select 6, _x select 7];
  38. _trader reveal _logic;
  39. _trader attachTo [_logic, [0, 0, 0]];
  40. _trader switchMove (_animations select 0);
  41. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  42. }
  43. forEach _npcs;
Add Comment
Please, Sign In to add comment