• 0
xDaVIRUS

[Remove]

Question

Posted (edited)

So i place a trader and for some reason i cant get any trader to be consistent... It shows the trader inventory at one spot then another its not there and i cant run a server with traders doing that, Am i doing something wrong? or is there something else i need? Why is it just SOMETIMES? i need answers! lol Besides that, amazing scripts.

Edited by xDaVIRUS

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0
15 hours ago, Metalman10 said:

post your init player local

Spoiler

////////////////////////////////////////////////////////////////////////////////
// Traders
////////////////////////////////////////////////////////////////////////////////
/**
 * Created with Exile Mod 3DEN Plugin
 * www.exilemod.com
 */

if (!hasInterface || isServer) exitWith {};

// 17 NPCs
private _npcs = [
["Exile_Trader_Vehicle", ["InBaseMoves_repairVehicleKnl","InBaseMoves_repairVehiclePne"], "Exile_Trader_Vehicle", "WhiteHead_01", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","G_Combat",[],["","","","","",""]], [18395.7, 8121.63, 0.857854], [-0.565802, -0.824541, 0], [0, 0, 1]],
["Exile_Trader_VehicleCustoms", ["AmovPercMstpSnonWnonDnon_exercisekneeBendA","AmovPercMstpSnonWnonDnon_exercisekneeBendB"], "Exile_Trader_VehicleCustoms", "WhiteHead_03", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"","G_Tactical_Clear",[],["","","","","",""]], [18379.9, 8123.11, 1.59098], [0.913758, 0.406258, 0], [0, 0, 1]],
["Exile_Trader_Armory", ["c4coming2cDf_genericstani1","c4coming2cDf_genericstani2","c4coming2cDf_genericstani3"], "Exile_Trader_Armory", "GreekHead_A3_08", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [18383.2, 8133.15, 1.60085], [0.658965, -0.752174, 0], [0, 0, 1]],
["Exile_Trader_Food", ["InBaseMoves_table1"], "Exile_Trader_Food", "WhiteHead_01", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [18407.2, 8182.44, 2.69944], [-0.921416, -0.388577, 0], [0, 0, 1]],
["Exile_Trader_Hardware", ["UnaErcPoslechVelitele1","UnaErcPoslechVelitele2"], "Exile_Trader_Hardware", "GreekHead_A3_09", [[],[],[],["U_C_WorkerCoveralls",[]],["V_BandollierB_rgr",[]],["B_UAV_01_backpack_F",[]],"H_Booniehat_khk_hs","",[],["","","","","",""]], [18425.4, 8129.05, 2.94253], [-0.994169, 0.0829429, -0.0689103], [-0.0691645, -0.000191531, 0.997605]],
["Exile_Trader_Equipment", ["InBaseMoves_SittingRifle1","InBaseMoves_SittingRifle2"], "Exile_Trader_Equipment", "WhiteHead_17", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","G_Combat",[],["","","","","",""]], [18419, 8152.4, 2.31831], [-0.945842, -0.324627, 0], [0, 0, 1]],
["Exile_Trader_Vehicle", ["InBaseMoves_repairVehicleKnl","InBaseMoves_repairVehiclePne"], "Exile_Trader_Vehicle", "Default", [[],[],[],["Exile_Uniform_ExileCustoms",[]],[],[],"H_RacingHelmet_4_F","G_Combat",[],["","","","","",""]], [14622.4, 16888.1, 17.8737], [0.811696, -0.58408, 0], [0, 0, 1]],
["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_04", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","",[],["","","","","",""]], [14607.8, 16913.1, 17.7816], [-0.781216, -0.624261, 0], [0, 0, 1]],
["Exile_Guard_02", ["InBaseMoves_patrolling1","InBaseMoves_patrolling2"], "", "WhiteHead_13", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","G_Tactical_Black",[],["","","","","",""]], [14559.1, 16935.7, 21.6474], [-0.280315, 0.959908, 0], [0, 0, 1]],
["Exile_Guard_02", ["InBaseMoves_patrolling1","InBaseMoves_patrolling2"], "", "WhiteHead_04", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","G_Tactical_Clear",[],["","","","","",""]], [14454, 16828.3, 22.1664], [-0.280315, 0.959908, 0], [0, 0, 1]],
["Exile_Trader_Food", [], "Exile_Trader_Food", "WhiteHead_14", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Black",[],["","","","","",""]], [14611.5, 16784.4, 18.0114], [-0.707107, 0.707107, 0], [0, 0, 1]],
["Exile_Guard_02", ["InBaseMoves_patrolling1","InBaseMoves_patrolling2"], "", "WhiteHead_09", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","G_Combat",[],["","","","","",""]], [18415.5, 8159.91, 6.4332], [-0.929815, -0.368027, 0], [0, 0, 1]],
["Exile_Trader_SpecialOperations", ["HubSittingHighB_idle1","HubSittingHighB_idle2"], "Exile_Trader_SpecialOperations", "WhiteHead_02", [["arifle_MX_Black_F","","","",[],[],""],[],[],["U_B_CTRG_1",[]],["V_PlateCarrierGL_blk",[]],["B_Parachute",[]],"H_HelmetB_light_black","G_Balaclava_lowprofile",[],["","","","","","NVGoggles_OPFOR"]], [18419.2, 8059.6, 3.08024], [-0.34849, -0.937312, 0], [0, 0, 1]],
["Exile_Trader_RussianRoulette", ["HubBriefing_scratch","HubBriefing_stretch"], "Exile_Trader_RussianRoulette", "GreekHead_A3_07", [[],[],["hgun_Pistol_Signal_F","","","",[],[],""],["U_Marshal",[]],["V_Rangemaster_belt",[]],[],"H_Cap_marshal","G_Sport_Blackyellow",[],["","","","","",""]], [18416.4, 8047.4, 3.13699], [0, 1, 0], [0, 0, 1]],
["Exile_Trader_Boat", ["AmovPercMstpSnonWnonDnon_exercisePushup"], "Exile_Trader_Boat", "WhiteHead_16", [[],[],[],["U_OrestesBody",[]],[],[],"H_Cap_surfer","G_Combat",[],["","","","","",""]], [18367.4, 8034.97, 1.87075], [0.801212, -0.59838, 0], [0, 0, 1]],
["Exile_Guard_02", ["InBaseMoves_patrolling1","InBaseMoves_patrolling2"], "", "WhiteHead_19", [["arifle_Mk20_GL_F","","","",[],[],""],[],[],["U_BG_Guerilla1_1",[]],["V_PlateCarrierIA2_dgtl",[]],[],"H_Hat_camo","",[],["","","","","",""]], [18426, 8091.46, 6.51272], [-0.929815, -0.368027, 0], [0, 0, 1]],
["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_09", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","",[],["","","","","",""]], [18392.2, 8094.62, 1.04607], [0.922255, 0.386583, 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;

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.