brujo22

Untitled

Nov 2nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 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. // 1 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_Vehicle", [], "Exile_Trader_Vehicle", "WhiteHead_07", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","G_Tactical_Clear",[],["","","","","",""]], [9518.49, 11350.1, 237.74], [-0.762364, -0.647148, 0], [0, 0, 1]]
  11. ];
  12.  
  13. {
  14. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  15. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  16. private _animations = _x select 1;
  17.  
  18. _logic setPosWorld (_x select 5);
  19. _logic setVectorDirAndUp [_x select 6, _x select 7];
  20.  
  21. _trader setVariable ["BIS_enableRandomization", false];
  22. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  23. _trader setVariable ["ExileAnimations", _animations];
  24. _trader setVariable ["ExileTraderType", _x select 2];
  25. _trader disableAI "ANIM";
  26. _trader disableAI "MOVE";
  27. _trader disableAI "FSM";
  28. _trader disableAI "AUTOTARGET";
  29. _trader disableAI "TARGET";
  30. _trader disableAI "CHECKVISIBLE";
  31. _trader allowDamage false;
  32. _trader setFace (_x select 3);
  33. _trader setUnitLoadOut (_x select 4);
  34. _trader setPosWorld (_x select 5);
  35. _trader setVectorDirAndUp [_x select 6, _x select 7];
  36. _trader reveal _logic;
  37. _trader attachTo [_logic, [0, 0, 0]];
  38. _trader switchMove (_animations select 0);
  39. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  40. }
  41. forEach _npcs;
Add Comment
Please, Sign In to add comment