Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created with Exile Mod 3DEN Plugin
- * www.exilemod.com
- */
- if (!hasInterface || isServer) exitWith {};
- // 3 NPCs
- private _npcs = [
- ["Exile_Trader_CommunityCustoms", [], "Exile_Trader_Vehicle", "WhiteHead_14", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [9215.02, 9857.78, 46.7585], [0, 1, 0], [0, 0, 1]],
- ["Exile_Trader_CommunityCustoms2", [], "Exile_Trader_Equipment", "WhiteHead_17", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","",[],["","","","","",""]], [9230.5, 9845.02, 47.272], [-0.278153, 0.960537, 0], [0, 0, 1]],
- ["Exile_Trader_CommunityCustoms3", [], "Exile_Trader_Armory", "WhiteHead_20", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Black",[],["","","","","",""]], [9226.61, 9846.73, 47.2723], [0, 1, 0], [0, 0, 1]]
- ];
- {
- private _logic = "Logic" createVehicleLocal [0, 0, 0];
- private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
- private _animations = _x select 1;
- _logic setPosWorld (_x select 5);
- _logic setVectorDirAndUp [_x select 6, _x select 7];
- _trader setVariable ["BIS_enableRandomization", false];
- _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
- _trader setVariable ["ExileAnimations", _animations];
- _trader setVariable ["ExileTraderType", _x select 2];
- _trader disableAI "ANIM";
- _trader disableAI "MOVE";
- _trader disableAI "FSM";
- _trader disableAI "AUTOTARGET";
- _trader disableAI "TARGET";
- _trader disableAI "CHECKVISIBLE";
- _trader allowDamage false;
- _trader setFace (_x select 3);
- _trader setUnitLoadOut (_x select 4);
- _trader setPosWorld (_x select 5);
- _trader setVectorDirAndUp [_x select 6, _x select 7];
- _trader reveal _logic;
- _trader attachTo [_logic, [0, 0, 0]];
- _trader switchMove (_animations select 0);
- _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
- }
- forEach _npcs;
Add Comment
Please, Sign In to add comment