Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 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. // 10 NPCs
  9. private _npcs = [
  10. ["Exile_Trader_Hardware", ["HubBriefing_pointAtTable"], "Exile_Trader_Hardware", "AfricanHead_02", [[],[],[],["U_C_Man_casual_6_F",[]],[],["B_LegStrapBag_black_F",[]],"H_Bandanna_surfer","G_Aviator",[],["","","","","",""]], [4593.86, 5221.87, 1.78182], [0.948163, -0.317785, 0], [0, 0, 1]],
  11. ["Exile_Guard_01", ["HubBriefing_think"], "", "AfricanHead_03", [[],[],[],["U_C_Mechanic_01_F",[]],[],[],"H_Cap_blu","",[],["","","","","",""]], [4593.46, 5220.8, 1.78173], [0.956656, 0.29122, 0], [0, 0, 1]],
  12. ["Exile_Trader_Food", ["HubSittingChairA_move1"], "Exile_Trader_Food", "WhiteHead_17", [[],[],[],["U_C_Man_casual_5_F",[]],[],[],"H_Booniehat_tan","",[],["","","","","",""]], [4628.65, 5213.19, 2.94855], [0.959363, 0.282174, 0], [0, 0, 1]],
  13. ["Exile_Trader_WasteDump", ["HubStandingUB_idle3"], "Exile_Trader_WasteDump", "WhiteHead_07", [[],[],[],["U_C_Poor_1",[]],["V_LegStrapBag_coyote_F",[]],[],"","",[],["","","","","",""]], [4579.79, 5203.96, 1.92514], [0.0581564, 0.998307, 0], [0, 0, 1]],
  14. ["Exile_Trader_VehicleCustoms", ["Exile_Acts_RepairVehicle01_Animation01"], "Exile_Trader_VehicleCustoms", "GreekHead_A3_07", [[],[],[],["U_I_C_Soldier_Bandit_5_F",[]],[],[],"","",[],["","","","","",""]], [4615.39, 5256.09, 2.146], [0.298974, -0.954261, 0], [0, 0, 1]],
  15. ["Exile_Trader_Vehicle", ["HubSittingHighB_move1"], "Exile_Trader_Vehicle", "WhiteHead_04", [[],[],[],["U_C_Man_casual_6_F",[]],[],[],"H_Bandanna_surfer_blk","G_Spectacles",[],["","","","","",""]], [4613.58, 5267.96, 2.43162], [-0.933699, -0.358058, 0], [0, 0, 1]],
  16. ["Exile_Trader_Diving", ["HubStandingUA_move1"], "Exile_Trader_Diving", "GreekHead_A3_08", [[],[],[],["U_C_man_sport_1_F",[]],["V_RebreatherB",[]],[],"H_Bandanna_blu","Exile_Glasses_Diving_NATO",[],["","","","","",""]], [4571.39, 5236.46, 1.52119], [0.99368, -0.112249, 0], [0, 0, 1]],
  17. ["Exile_Trader_Boat", ["HubStandingUA_idle2"], "Exile_Trader_Boat", "GreekHead_A3_09", [[],[],[],["U_OrestesBody",[]],[],[],"H_Cap_surfer","G_Tactical_Clear",[],["","","","","",""]], [4525.49, 5228.92, 1.58359], [0.947635, -0.319356, 0], [0, 0, 1]],
  18. ["Exile_Trader_Equipment", ["HubSittingChairUC_move1"], "Exile_Trader_Equipment", "AfricanHead_03", [[],[],[],["U_I_C_Soldier_Para_2_F",[]],[],[],"H_Cap_tan","",[],["","","","","",""]], [4608.35, 5211.35, 3.1251], [0.965948, 0.258735, 0], [0, 0, 1]],
  19. ["Exile_Trader_Armory", ["InBaseMoves_SittingRifle1"], "Exile_Trader_Armory", "WhiteHead_04", [["M1014","","","",["8rnd_B_Beneli_74Slug",8],[],""],[],[],["U_I_C_Soldier_Bandit_2_F",[["8rnd_B_Beneli_74Slug",2,8]]],["V_Pocketed_black_F",[["8rnd_B_Beneli_74Slug",1,8]]],[],"H_Cap_usblack","G_Shades_Black",[],["","","","","",""]], [4612.81, 5207.02, 3.12444], [0.846509, 0.532374, 0], [0, 0, 1]]
  20. ];
  21.  
  22. {
  23. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  24. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  25. private _animations = _x select 1;
  26.  
  27. _logic setPosWorld (_x select 5);
  28. _logic setVectorDirAndUp [_x select 6, _x select 7];
  29.  
  30. _trader setVariable ["BIS_enableRandomization", false];
  31. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  32. _trader setVariable ["ExileAnimations", _animations];
  33. _trader setVariable ["ExileTraderType", _x select 2];
  34. _trader disableAI "ANIM";
  35. _trader disableAI "MOVE";
  36. _trader disableAI "FSM";
  37. _trader disableAI "AUTOTARGET";
  38. _trader disableAI "TARGET";
  39. _trader disableAI "CHECKVISIBLE";
  40. _trader allowDamage false;
  41. _trader setFace (_x select 3);
  42. _trader setUnitLoadOut (_x select 4);
  43. _trader setPosWorld (_x select 5);
  44. _trader setVectorDirAndUp [_x select 6, _x select 7];
  45. _trader reveal _logic;
  46. _trader attachTo [_logic, [0, 0, 0]];
  47. _trader switchMove (_animations select 0);
  48. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  49. }
  50. forEach _npcs;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement