Advertisement
Guest User

initPlayerLocal.sqf

a guest
Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////
  2. // LHS Aircraft Carrier trader
  3. ////////////////////////////////////////////////////////////////////////////
  4.  
  5. /**
  6. * Created with Exile Mod 3DEN Plugin
  7. * www.exilemod.com
  8. */
  9.  
  10. if (!hasInterface || isServer) exitWith {};
  11.  
  12. // 5 NPCs
  13. private _npcs = [
  14. ["Exile_Trader_Boat", ["HubStanding_idle1"], "Exile_Trader_CommunityCustoms", "WhiteHead_03", [["SMG_02_F","","","",["30Rnd_9x21_Mag_SMG_02",30],[],""],[],[],["CUP_B_USMC_Navy_Blue",[["30Rnd_9x21_Mag_SMG_02",2,30]]],["CUP_V_B_LHDVest_Blue",[]],[],"","rhs_googles_clear",[],["","","","","",""]], [14393.7, 9479.78, 16.6747], [-0.698627, 0.715486, 0], [0, 0, 1]],
  15. ["Exile_Trader_WasteDump", ["HubStandingUB_idle1"], "Exile_Trader_WasteDump", "WhiteHead_21", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Aviator",[],["","","","","",""]], [14435.7, 9402.89, 16.6699], [0.4885, -0.872564, 0], [0, 0, 1]],
  16. ["Exile_Trader_Equipment", ["HubSittingChairA_idle1"], "Exile_Trader_Equipment", "AfricanHead_03", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","rhs_googles_orange",[],["","","","","",""]], [14400.9, 9468.08, 16.6822], [-0.996779, -0.0801988, 0], [0, 0, 1]],
  17. ["Exile_Trader_Armory", ["AmovPsitMstpSrasWrflDnon_WeaponCheck1"], "Exile_Trader_Armory", "WhiteHead_11", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [14394.6, 9476.31, 16.7257], [-0.966442, -0.256885, 0], [0, 0, 1]],
  18. ["Exile_Trader_Aircraft", ["c4coming2cDf_genericstani1"], "Exile_Trader_Aircraft", "WhiteHead_05", [["CUP_smg_MP5A5","","","",["CUP_30Rnd_9x19_MP5",30],[],""],[],[],["U_I_pilotCoveralls",[["CUP_30Rnd_9x19_MP5",3,30]]],[],[],"H_PilotHelmetHeli_O","",[],["","","","","",""]], [14389.4, 9476.86, 16.6733], [-0.718199, 0.695837, 0], [0, 0, 1]]
  19. ];
  20.  
  21. {
  22. private _logic = "Logic" createVehicleLocal [0, 0, 0];
  23. private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
  24. private _animations = _x select 1;
  25.  
  26. _logic setPosWorld (_x select 5);
  27. _logic setVectorDirAndUp [_x select 6, _x select 7];
  28.  
  29. _trader setVariable ["BIS_enableRandomization", false];
  30. _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
  31. _trader setVariable ["ExileAnimations", _animations];
  32. _trader setVariable ["ExileTraderType", _x select 2];
  33. _trader disableAI "ANIM";
  34. _trader disableAI "MOVE";
  35. _trader disableAI "FSM";
  36. _trader disableAI "AUTOTARGET";
  37. _trader disableAI "TARGET";
  38. _trader disableAI "CHECKVISIBLE";
  39. _trader allowDamage false;
  40. _trader setFace (_x select 3);
  41. _trader setUnitLoadOut (_x select 4);
  42. _trader setPosWorld (_x select 5);
  43. _trader setVectorDirAndUp [_x select 6, _x select 7];
  44. _trader reveal _logic;
  45. _trader attachTo [_logic, [0, 0, 0]];
  46. _trader switchMove (_animations select 0);
  47. _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
  48. }
  49. forEach _npcs;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement