Jump to content

DayZDrDoom

Member
  • Posts

    31
  • Joined

  • Last visited

Posts posted by DayZDrDoom

  1.  

    Here is the code for my bridges on Napf. One is from Awols to Suhrenfeld Array island, then from there by the docks to the northern most island above Array. I also have a bridge near Lausen to the small island north of it. Lastly I have a bridge going West from Hero Trader Airport to the island and connecting both islands together. If you do not want one, just remove that line from the system and it will be gone. This script should go in your init folder and then inserted in the server_functions.sqf file.
    Thanks so much to Fully for this great script he shared with us!!
     
    };
    //START//
     
    if (isNil "oneTime") then {
     
    oneTime = true;
     
    fnc_bridgeA2 = {
    private ["_start","_obj"];
    _start = createVehicle [
    _this select 2,
    _this select 0,
    [],
    0, "
    CAN_COLLIDE"
    ];
    _start setVectorUp [0,0,1];
    _start setDir (_this select 1);
    _start setPosATL (_this select 0);
    for "_i" from 1 to (_this select 3) do {
    _obj = createVehicle [
    _this select 2,
    _this select 0,
    [],
    0,
    "CAN_COLLIDE"
    ];
    _obj attachTo [_start, [
    _i*(_this select 4),
    _i*(_this select 5),
    _i*(_this select 6)
    ]];
    };
    };
     
    //END//
     
     
     
    //Placement of objects//
    //[startingPosition, direction, objectClass, repeats, offsetX, offsetY, offsetZ]
     
     
    [ [15977.752, 15997.674, -10.9626017], 28, "MAP_Bridge_stone_asf2_25", 120,0,15, 0 ] call fnc_bridgeA2;
    [ [17079.8,18870.3,-10.00143099], 58.2, "MAP_Bridge_stone_asf2_25", 75,0,15, 0 ] call fnc_bridgeA2;
    [ [12354.339, 15672.063, 0.950], -40.469933, "Land_nav_pier_m_2", 10, 40, 0, 0 ] call fnc_bridgeA2;
    [ [11103.7, 17759.7,-1.950], -80.1, "Land_nav_pier_m_2", 10, 30, 0, 0 ] call fnc_bridgeA2;
    [ [1420.8, 4121.58,-3.950], -110.1, "Land_nav_pier_m_2", 10, 30, 0, 0 ] call fnc_bridgeA2;
    [ [1549.48, 4083.11, -8.9626017], 80.5, "MAP_Bridge_stone_asf2_25", 900,0,15, 0 ] call fnc_bridgeA2;
    };  
      
     
     
    King
    DayzKingdom.com

     

    Dude, Freaking amazing.. thank you for sharing, this helps me on adding more to it. 

  2. Can anyone tell me how one would need to change the snippets

    ...  && "ItemToolbox" in _weapons ...
    ... player addWeapon "ItemToolbox";

    so instead of a toolbox a backpack, e.g. DZ_CompactPack_EP1 is used to build the bike?

     

    That would make using it come with a price as you'd be restricted to carry an empty (re-spawning would give you an empty one, I guess) small backpack in lieu of a folding bike.

     

    I'd certainly love a folding bike that you'd drop&pick up like a backpack :-)

     

     I too would like to change this, as it is overwriting the ability to use Origons Construction box.

  3. That should not be happening.

    Unless you are changing the 2 end values?

     

    It works like this

    You place down 1 part of your bridge,

    In the example above, it then attaches, 10 more bridge parts to each other, with a offset "X" of 40 meters.

    If you want to shar what you are doing I can have a look at for you?

     

    I'm trying to connect the N airfield on Napf to Surhfeld Array with a bridge

     

     so, I need to go into edit, create one piece of the bridge, add that to the end fo [ [12354.339, 15672.063, 0.950], -40.469933, "Land_nav_pier_m_2", 10, 40, 0, 0 ] call "Here?" ; 

    then call the file?

     

     

     

     

  4. I have these two odd errors in my RPT and my serveris taking forever to load. HAs anyone else seen this or have suggestions? I've looked at the lines of code for the file it says and see no issues at all.

     

    Error 1

     

    16:49:32 Error in expression <key;

    _resultArray = call compile _data;

    _resultArray

    };

     

    server_checkIfTowed = {>

    16:49:32   Error position: <_resultArray

    };

     

    server_checkIfTowed = {>

    16:49:32   Error Undefined variable in expression: _resultarray

    16:49:32 File z\addons\dayz_server\init\server_functions.sqf, line 181

    16:49:32 Error in expression < server_hiveReadWriteLarge;

     

    _status  = _result select 0;

     

    if (_status == 'Custo>

    16:49:32   Error position: <_result select 0;

     

    if (_status == 'Custo>

    16:49:32   Error Undefined variable in expression: _result

    16:49:32 File z\addons\dayz_server\system\instaaction.sqf, line 11

    16:49:32 Error in expression <action.sqf"

    while {true} do {

    if (isNil _firstStartAction) then {

    format ['CHILD>

    16:49:32   Error position: <_firstStartAction) then {

    format ['CHILD>

    16:49:32   Error Undefined variable in expression: _firststartaction

    16:49:32 File z\addons\dayz_server\system\instaaction.sqf, line 2

     

    Error 2

    16:49:01   Error position: <_firstStartAction) then {
    format ['CHILD>
    16:49:01   Error Undefined variable in expression: _firststartaction
    16:49:01 File z\addons\dayz_server\system\instaaction.sqf, line 2
    16:49:11 Error in expression <action.sqf"
    while {true} do {
    if (isNil _firstStartAction) then {
    format ['CHILD>
    16:49:11   Error position: <_firstStartAction) then {
    format ['CHILD>
    16:49:11   Error Undefined variable in expression: _firststartaction
    16:49:11 File z\addons\dayz_server\system\instaaction.sqf, line 2
    16:49:21 Error in expression <action.sqf"
    while {true} do {
    if (isNil _firstStartAction) then {
    format ['CHILD>
    16:49:21   Error position: <_firstStartAction) then {
    format ['CHILD>
    16:49:21   Error Undefined variable in expression: _firststartaction
    16:49:21 File z\addons\dayz_server\system\instaaction.sqf, line 2
×
×
  • Create New...