9 posts in this topic

im trying to add the USS Freedom to my server with a few trader on the top deck of it.

first time i did it it all worked other than the ship moved once i was in game, so i went back into editor and completely moved everything to another postilion. now i can get everything showing other than the ship?

here is my initserver.sqf

Spoiler

///////////////////////////////////////////////////////////////////////////////////////////////////
// USS Freedom
///////////////////////////////////////////////////////////////////////////////////////////////////

 _vehicles = [
["Land_Carrier_01_base_F", [15081.7, 8479.79, 0], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Aircraft", [15060.2, 8589.56, 24.5597], [-0.999841, 0.0178356, 0], [0, 0, 1], true],
["Exile_Sign_AircraftCustoms", [15058.8, 8598.17, 24.5597], [-0.701865, -0.71231, 0], [0, 0, 1], true],
["Exile_Sign_Armory", [15057, 8573.6, 24.5597], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Equipment", [15048.3, 8573.49, 24.5597], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Food", [15049.6, 8579.27, 24.6098], [0.034548, -0.999403, 0], [0, 0, 1], true],
["Exile_Sign_Locker", [15051.5, 8588.62, 24.8974], [-0.0240819, -0.99971, 0], [0, 0, 1], true],
["Exile_Sign_WasteDump", [15041.8, 8484.79, 24.5597], [-0.61656, -0.787308, 0], [0, 0, 1], true],
["Land_Wreck_Heli_Attack_02_F", [15042.9, 8479.13, 26.3104], [-0.986637, -0.162933, 0], [0, 0, 1], true],
["Land_HistoricalPlaneDebris_01_F", [15042.3, 8488.55, 23.7055], [-0.534488, -0.845176, 0], [0, 0, 1], true],
["Land_HistoricalPlaneWreck_02_wing_right_F", [15045.5, 8493.8, 24.4181], [-0.922924, 0.384982, 0], [0, 0, 1], true],
["Land_GarbageBarrel_01_F", [15041.2, 8486.71, 24.1325], [0, 1, 0], [0, 0, 1], true],
["Land_Tyres_F", [15048, 8493.16, 23.791], [-0.948936, 0.315468, 0], [0, 0, 1], true],
["Hostage_PopUp3_Moving_90deg_F", [15052.8, 8573.04, 24.5503], [-0.361163, 0.932503, 0], [0, 0, 1], true],
["Exile_Locker", [15049.7, 8588.69, 23.8459], [0.0540724, -0.998537, 0], [0, 0, 1], true],
["Land_CashDesk_F", [15049.5, 8581, 23.5687], [-0.297487, -0.954726, 0], [0, 0, 1], true],
["Land_MobileLandingPlatform_01_F", [15062.9, 8588.44, 23.6993], [0.844649, -0.53532, 0], [0, 0, 1], true],
["Land_Carrier_01_hull_08_GEO_2_F", [15056.7, 8599.79, 0], [0, 1, 0], [0, 0, 1], true],
["Land_Carrier_01_island_02_F", [15051.7, 8589.79, 23.5], [0, 1, 0], [0, 0, 1], true]
];

{
    private _vehicle = (_x select 0) createVehicle (_x select 1);
    _vehicle allowDamage false;
    _vehicle setPosWorld (_x select 1);
    _vehicle setVectorDirAndUp [_x select 2, _x select 3];
    _vehicle enableSimulationGlobal (_x select 4);
    _vehicle setVariable ["ExileIsLocked", -1, true];
    
}
forEach _vehicles;

// 3 Simple Objects
private _invisibleSelections = ["zasleh", "zasleh2", "box_nato_grenades_sign_f", "box_nato_ammoord_sign_f", "box_nato_support_sign_f"];
private _simpleObjects = [
["a3\weapons_f\ammoboxes\wpnsbox_f.p3d", [15055.3, 8574.1, 23.7074], [0.548742, 0.835992, 0], [0, 0, 1]],
["a3\weapons_f\ammoboxes\supplydrop.p3d", [15054, 8573.86, 24.4111], [-0.998297, -0.0583417, 0], [0, 0, 1]],
["a3\supplies_f_heli\cargonets\cargonet_01_ammo_f.p3d", [15059, 8574.26, 24.3439], [0.867496, -0.497445, 0], [0, 0, 1]]
];

{
    private _simpleObject = createSimpleObject [_x select 0, _x select 1];
    _simpleObject setVectorDirAndUp [_x select 2, _x select 3];
    
    {
        if ((toLower _x) in _invisibleSelections) then 
        {
            _simpleObject hideSelection [_x, true];
        };
    }
    forEach (selectionNames _simpleObject);
}
forEach _simpleObjects;
 

and here is my initplayerlocal.sqf

Spoiler

////////////////////////////////////////////////////////////////////////////
// USS Freedom
////////////////////////////////////////////////////////////////////////////

private _npcs = [
["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_05", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Combat",[],["","","","","",""]], [15042.6, 8485.84, 23.5206], [0.952778, 0.303667, 0], [0, 0, 1]],
["Exile_Trader_Aircraft", [], "Exile_Trader_Aircraft", "WhiteHead_10", [[],[],[],["U_I_pilotCoveralls",[]],[],[],"H_PilotHelmetHeli_O","G_Aviator",[],["","","","","",""]], [15061.6, 8590.66, 23.52], [0.984038, 0.177961, 0], [0, 0, 1]],
["Exile_Trader_AircraftCustoms", [], "Exile_Trader_AircraftCustoms", "WhiteHead_17", [[],[],[],["Exile_Uniform_ExileCustoms",[]],["V_RebreatherB",[]],[],"H_PilotHelmetFighter_B","",[],["","","","","",""]], [15059.3, 8598.71, 23.5199], [0.793725, 0.608277, 0], [0, 0, 1]],
["Exile_Trader_Food", [], "Exile_Trader_Food", "AfricanHead_02", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [15049.4, 8580.44, 23.5697], [0, 1, 0], [0, 0, 1]],
["Exile_Trader_Equipment", [], "Exile_Trader_Equipment", "WhiteHead_20", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","",[],["","","","","",""]], [15047.4, 8572.7, 23.5198], [0.426048, -0.904701, 0], [0, 0, 1]],
["Exile_Trader_Armory", [], "Exile_Trader_Armory", "WhiteHead_02", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [15058, 8572.08, 23.5202], [-0.667612, -0.74451, 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;

any help would be greatly appreciated.

 

Thanks in Advance

SWEENNDAWG

Share this post


Link to post
Share on other sites
Guest
14 minutes ago, SWEENNDAWG said:

im trying to add the USS Freedom to my server with a few trader on the top deck of it.

first time i did it it all worked other than the ship moved once i was in game, so i went back into editor and completely moved everything to another postilion. now i can get everything showing other than the ship?

here is my initserver.sqf

  Reveal hidden contents

///////////////////////////////////////////////////////////////////////////////////////////////////
// USS Freedom
///////////////////////////////////////////////////////////////////////////////////////////////////

 _vehicles = [
["Land_Carrier_01_base_F", [15081.7, 8479.79, 0], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Aircraft", [15060.2, 8589.56, 24.5597], [-0.999841, 0.0178356, 0], [0, 0, 1], true],
["Exile_Sign_AircraftCustoms", [15058.8, 8598.17, 24.5597], [-0.701865, -0.71231, 0], [0, 0, 1], true],
["Exile_Sign_Armory", [15057, 8573.6, 24.5597], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Equipment", [15048.3, 8573.49, 24.5597], [0, 1, 0], [0, 0, 1], true],
["Exile_Sign_Food", [15049.6, 8579.27, 24.6098], [0.034548, -0.999403, 0], [0, 0, 1], true],
["Exile_Sign_Locker", [15051.5, 8588.62, 24.8974], [-0.0240819, -0.99971, 0], [0, 0, 1], true],
["Exile_Sign_WasteDump", [15041.8, 8484.79, 24.5597], [-0.61656, -0.787308, 0], [0, 0, 1], true],
["Land_Wreck_Heli_Attack_02_F", [15042.9, 8479.13, 26.3104], [-0.986637, -0.162933, 0], [0, 0, 1], true],
["Land_HistoricalPlaneDebris_01_F", [15042.3, 8488.55, 23.7055], [-0.534488, -0.845176, 0], [0, 0, 1], true],
["Land_HistoricalPlaneWreck_02_wing_right_F", [15045.5, 8493.8, 24.4181], [-0.922924, 0.384982, 0], [0, 0, 1], true],
["Land_GarbageBarrel_01_F", [15041.2, 8486.71, 24.1325], [0, 1, 0], [0, 0, 1], true],
["Land_Tyres_F", [15048, 8493.16, 23.791], [-0.948936, 0.315468, 0], [0, 0, 1], true],
["Hostage_PopUp3_Moving_90deg_F", [15052.8, 8573.04, 24.5503], [-0.361163, 0.932503, 0], [0, 0, 1], true],
["Exile_Locker", [15049.7, 8588.69, 23.8459], [0.0540724, -0.998537, 0], [0, 0, 1], true],
["Land_CashDesk_F", [15049.5, 8581, 23.5687], [-0.297487, -0.954726, 0], [0, 0, 1], true],
["Land_MobileLandingPlatform_01_F", [15062.9, 8588.44, 23.6993], [0.844649, -0.53532, 0], [0, 0, 1], true],
["Land_Carrier_01_hull_08_GEO_2_F", [15056.7, 8599.79, 0], [0, 1, 0], [0, 0, 1], true],
["Land_Carrier_01_island_02_F", [15051.7, 8589.79, 23.5], [0, 1, 0], [0, 0, 1], true]
];

{
    private _vehicle = (_x select 0) createVehicle (_x select 1);
    _vehicle allowDamage false;
    _vehicle setPosWorld (_x select 1);
    _vehicle setVectorDirAndUp [_x select 2, _x select 3];
    _vehicle enableSimulationGlobal (_x select 4);
    _vehicle setVariable ["ExileIsLocked", -1, true];
    
}
forEach _vehicles;

// 3 Simple Objects
private _invisibleSelections = ["zasleh", "zasleh2", "box_nato_grenades_sign_f", "box_nato_ammoord_sign_f", "box_nato_support_sign_f"];
private _simpleObjects = [
["a3\weapons_f\ammoboxes\wpnsbox_f.p3d", [15055.3, 8574.1, 23.7074], [0.548742, 0.835992, 0], [0, 0, 1]],
["a3\weapons_f\ammoboxes\supplydrop.p3d", [15054, 8573.86, 24.4111], [-0.998297, -0.0583417, 0], [0, 0, 1]],
["a3\supplies_f_heli\cargonets\cargonet_01_ammo_f.p3d", [15059, 8574.26, 24.3439], [0.867496, -0.497445, 0], [0, 0, 1]]
];

{
    private _simpleObject = createSimpleObject [_x select 0, _x select 1];
    _simpleObject setVectorDirAndUp [_x select 2, _x select 3];
    
    {
        if ((toLower _x) in _invisibleSelections) then 
        {
            _simpleObject hideSelection [_x, true];
        };
    }
    forEach (selectionNames _simpleObject);
}
forEach _simpleObjects;
 

and here is my initplayerlocal.sqf

  Reveal hidden contents

////////////////////////////////////////////////////////////////////////////
// USS Freedom
////////////////////////////////////////////////////////////////////////////

private _npcs = [
["Exile_Trader_WasteDump", [], "Exile_Trader_WasteDump", "WhiteHead_05", [[],[],[],["U_I_G_Story_Protagonist_F",[]],["V_Rangemaster_belt",[]],[],"H_MilCap_gry","G_Combat",[],["","","","","",""]], [15042.6, 8485.84, 23.5206], [0.952778, 0.303667, 0], [0, 0, 1]],
["Exile_Trader_Aircraft", [], "Exile_Trader_Aircraft", "WhiteHead_10", [[],[],[],["U_I_pilotCoveralls",[]],[],[],"H_PilotHelmetHeli_O","G_Aviator",[],["","","","","",""]], [15061.6, 8590.66, 23.52], [0.984038, 0.177961, 0], [0, 0, 1]],
["Exile_Trader_AircraftCustoms", [], "Exile_Trader_AircraftCustoms", "WhiteHead_17", [[],[],[],["Exile_Uniform_ExileCustoms",[]],["V_RebreatherB",[]],[],"H_PilotHelmetFighter_B","",[],["","","","","",""]], [15059.3, 8598.71, 23.5199], [0.793725, 0.608277, 0], [0, 0, 1]],
["Exile_Trader_Food", [], "Exile_Trader_Food", "AfricanHead_02", [[],[],[],["U_C_Poloshirt_blue",[]],[],[],"H_Cap_tan","G_Tactical_Clear",[],["","","","","",""]], [15049.4, 8580.44, 23.5697], [0, 1, 0], [0, 0, 1]],
["Exile_Trader_Equipment", [], "Exile_Trader_Equipment", "WhiteHead_20", [["arifle_MX_GL_Black_F","","","",[],[],""],[],[],["U_BG_Guerrilla_6_1",[]],["V_I_G_resistanceLeader_F",[]],[],"H_Watchcap_khk","",[],["","","","","",""]], [15047.4, 8572.7, 23.5198], [0.426048, -0.904701, 0], [0, 0, 1]],
["Exile_Trader_Armory", [], "Exile_Trader_Armory", "WhiteHead_02", [["srifle_DMR_06_olive_F","","","",[],[],""],[],[],["U_Rangemaster",[]],["V_Rangemaster_belt",[]],[],"H_Cap_headphones","G_Shades_Black",[],["","","","","",""]], [15058, 8572.08, 23.5202], [-0.667612, -0.74451, 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;

any help would be greatly appreciated.

 

Thanks in Advance

SWEENNDAWG

 

Share this post


Link to post
Share on other sites
Advertisement
Guest
6 minutes ago, SWEENNDAWG said:

do i have to change them co-ord to suit my co-ordinates for the USS Freedom?

 

change:

if (isServer) then {
    private _carrier = createVehicle ["Land_Carrier_01_base_F",[11244.858,11248.437,0],[],0,"NONE"];   <---- Change this with your coordinates
    _carrier setPosWorld [11244.858,11248.437,0]; // [x,y,z] or positionWorld  <---- Change this with your coordinates
    _carrier setDir 0; // North <---- Change this with your position   example: 60 or 90 or 120 
    [_carrier] call BIS_fnc_Carrier01PosUpdate;
};

 

Edited by 110

Share this post


Link to post
Share on other sites
Guest
5 minutes ago, SWEENNDAWG said:

wicked, what about the entries for it within the initserver.sqf, leave them be?

This code ensures that you have the aircraft carrier in the desired position.

Paste the code into your init.sqf.

if (isServer) then {
    private _carrier = createVehicle ["Land_Carrier_01_base_F",[11244.858,11248.437,0],[],0,"NONE"];   <---- Change this with your coordinates
    _carrier setPosWorld [11244.858,11248.437,0]; // [x,y,z] or positionWorld  <---- Change this with your coordinates
    _carrier setDir 0; // North <---- Change this with your position   example: 60 or 90 or 120 
    [_carrier] call BIS_fnc_Carrier01PosUpdate;
};

Share this post


Link to post
Share on other sites

next question is i have placed an aircraft trader on the deck of the USS and i get error 13, meaning it cant find a safe place to spawn the vehicle. even using infistar the vehicle ends up in the ocean.

any ideas??

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.