Advertisement
brujo22

Untitled

Oct 31st, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 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_Diving", [], "Exile_Trader_Diving", "WhiteHead_15", [["arifle_SDAR_F","","","",[],[],""],[],[],["U_I_Wetsuit",[]],["V_RebreatherIA",[]],[],"","G_I_Diving",[],["","","","","",""]], [13129.9, 8190.23, 2.02144], [-0.949411, 0.314036, 0], [0, 0, 1]],
  11. ["Exile_Trader_Boat", [], "Exile_Trader_Boat", "WhiteHead_16", [[],[],[],["U_OrestesBody",[]],[],[],"H_Cap_surfer","",[],["","","","","",""]], [13130.1, 8192.39, 2.02144], [-0.947719, -0.319106, 0], [0, 0, 1]],
  12. ["Exile_Trader_BoatCustoms", [], "Exile_Trader_BoatCustoms", "AfricanHead_03", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [13127.1, 8193.34, 2.02144], [0.265929, -0.963993, 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement