brujo22

Untitled

Nov 3rd, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 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. // 5 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_CommunityCustoms", [], "Exile_Trader_CommunityCustoms", "WhiteHead_06", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Combat",[],["","","","","",""]], [9518.2, 11350.1, 237.739], [-0.356588, -0.934262, 0], [0, 0, 1]],
  11. ["Exile_Trader_CommunityCustoms10", [], "Exile_Trader_CommunityCustoms10", "AsianHead_A3_04", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [9520.24, 11348, 237.775], [-0.957229, -0.289333, 0], [0, 0, 1]],
  12. ["Exile_Trader_Food", [], "Exile_Trader_Food", "AfricanHead_02", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [9496.81, 11364.8, 237.516], [-0.714138, 0.700005, 0], [0, 0, 1]],
  13. ["Exile_Trader_Food", [], "Exile_Trader_Food", "GreekHead_A3_09", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","",[],["","","","","",""]], [9487.17, 11356.7, 237.595], [-0.731804, 0.681515, 0], [0, 0, 1]],
  14. ["Exile_Trader_Food", [], "Exile_Trader_Food", "WhiteHead_09", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","",[],["","","","","",""]], [9484.93, 11378.7, 237.186], [0.714166, -0.699977, 0], [0, 0, 1]]
  15. ];
  16.  
  17. {
  18. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  19. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  20. private _animations = _x select 1;
  21.  
  22. _logic setPosWorld (_x select 5);
  23. _logic setVectorDirAndUp [_x select 6, _x select 7];
  24.  
  25. _trader setVariable ["BIS_enableRandomization", false];
  26. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  27. _trader setVariable ["ExileAnimations", _animations];
  28. _trader setVariable ["ExileTraderType", _x select 2];
  29. _trader disableAI "ANIM";
  30. _trader disableAI "MOVE";
  31. _trader disableAI "FSM";
  32. _trader disableAI "AUTOTARGET";
  33. _trader disableAI "TARGET";
  34. _trader disableAI "CHECKVISIBLE";
  35. _trader allowDamage false;
  36. _trader setFace (_x select 3);
  37. _trader setUnitLoadOut (_x select 4);
  38. _trader setPosWorld (_x select 5);
  39. _trader setVectorDirAndUp [_x select 6, _x select 7];
  40. _trader reveal _logic;
  41. _trader attachTo [_logic, [0, 0, 0]];
  42. _trader switchMove (_animations select 0);
  43. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  44. }
  45. forEach _npcs;
Advertisement
Add Comment
Please, Sign In to add comment