Guest User

initPlayerLocal.sqf

a guest
Oct 5th, 2016
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 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_Armory", [], "Exile_Trader_Armory", "WhiteHead_14", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [4346.77, 3817.52, 226.758], [-0.995347, -0.0963502, 0], [0, 0, 1]],
  11. ["Exile_Trader_Equipment", [], "Exile_Trader_Equipment", "GreekHead_A3_07", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","",[],["","","","","",""]], [4347.51, 3812.76, 226.758], [-0.998787, 0.049235, 0], [0, 0, 1]],
  12. ["Exile_Trader_Food", [], "Exile_Trader_Food", "GreekHead_A3_08", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [4347.32, 3811.32, 226.758], [-0.613193, -0.789933, 0], [0, 0, 1]],
  13. ["Exile_Trader_Hardware", [], "Exile_Trader_Hardware", "AfricanHead_03", [[],[],[],["U_C_WorkerCoveralls",[]],["V_BandollierB_rgr",[]],["B_UAV_01_backpack_F",[]],"H_Booniehat_khk_hs","",[],["","","","","",""]], [4332.1, 3809.24, 226.765], [0.999131, 0.0416729, 0], [0, 0, 1]],
  14. ["Exile_Trader_SpecialOperations", [], "Exile_Trader_SpecialOperations", "GreekHead_A3_06", [["arifle_MX_Black_F","","","",[],[],""],[],[],["U_B_CTRG_1",[]],["V_PlateCarrierGL_blk",[]],["B_Parachute",[]],"H_HelmetB_light_black","G_Balaclava_lowprofile",[],["","","","","","NVGoggles_OPFOR"]], [4331.59, 3813.95, 226.765], [0.995871, -0.0907765, 0], [0, 0, 1]],
  15. ["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_01", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Tactical_Clear",[],["","","","","",""]], [4330.9, 3821.18, 226.766], [0.921719, -0.387859, 0], [0, 0, 1]],
  16. ["Exile_Trader_Aircraft", [], "Exile_Trader_Aircraft", "GreekHead_A3_07", [[],[],[],["U_I_pilotCoveralls",[]],[],[],"H_PilotHelmetHeli_O","",[],["","","","","",""]], [4378.47, 3832.33, 227.44], [-0.998764, -0.0497041, 0], [0, 0, 1]],
  17. ["Exile_Trader_Vehicle", [], "Exile_Trader_Vehicle", "WhiteHead_07", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","",[],["","","","","",""]], [4365.2, 3748.31, 224.603], [0.296746, 0.954956, 0], [0, 0, 1]],
  18. ["Exile_Guard_01", [], "", "AfricanHead_03", [["srifle_DMR_03_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_TacVest_khk",[]],[],"H_ShemagOpen_tan","",[],["","","","","",""]], [4335.02, 3779.89, 223.474], [-0.89156, -0.452904, 0], [0, 0, 1]],
  19. ["Exile_Guard_02", [], "", "AfricanHead_02", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","G_Tactical_Clear",[],["","","","","",""]], [4327.92, 3785.46, 222.894], [-0.352649, -0.935756, 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;
Add Comment
Please, Sign In to add comment