Jump to content

[Help!] Trying to add bridge between Lausen and Island


Recommended Posts

Yeah - I use server_monitor

 

And add them under here!

// Custom Configs

I dont know if it makes a difference were they go! Is there a difference?

Or is it a hosting issue?

 

Most likely not, I've just always used server_functions.sqf, I never even knew you could use server_monitor.sqf

Something new learnt :)

Link to comment
Share on other sites

Do my files look right? am I calling it right?

 

No!

 

Make it llook like this (if you named fnc_bridgeA2.sqf and stuck it in the buildings directory)

// Custom Configs
call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\fnc_bridgeA2.sqf";

if(isnil "MaxVehicleLimit") then {
        MaxVehicleLimit = 50;
};
Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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. 

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...