Jump to content

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


Recommended Posts

Hey,

 

Trying to add a bridge between Lausen and the island that is between the airfield and Lausen.

 

Made the bridge in the 3d editor and had it all lined up and level, but when it get's onto my server the bridge is all at different levels.

 

You can go across walking and not break anything, haven't tried vehicles, but I don't want to run the risk of the players breaking bones or dying when crossing.

 

Is there anything I can do in the object init to make sure they stay in the same place on the server and avoid players getting injuries?

 

Thank you for your time,

 

Shane

Link to comment
Share on other sites

Hi Shane. 

 

I was trying to get a bridge sorted for panthera and I just could not understand the links you can find in this section under Varty bridge.

Take a look at that link, you may have more success than me.

 

However I eventually sussed it out by adding the following into my coding. (in green) The bit in red at the end is the height.

 

Any issues let me know and I will see if I can help

 

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_bridge_asf1_25", [2861.157, 7875.7563, 6.9823689], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir -89.536591;
  _this setVehicleInit "this setVectorUp [0,0,1];";
     _this setVehicleInit "this setPosASL [getposASL this select 0, getposASL this select 1, 6.5]";
  _this setPos [2861.157, 7875.7563, 6.9823689];
};
 
_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_bridge_asf1_25", [2839.2539, 7876.2378, 5.2477131], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir -89.689972;
_this setVehicleInit "this setVectorUp [0,0,1];";
   _this setVehicleInit "this setPosASL [getposASL this select 0, getposASL this select 1, 6.5]";
  _this setPos [2839.2539, 7876.2378, 5.2477131];
};
Link to comment
Share on other sites

For the bridge pieces make them "LOCKED" in the Vehicle Lock setting and apply this to the Vehicle Init:

 

this setPosASL [getposASL this select 0, getposASL this select 1, -2.5]

 

Obviously edit the -2.5 to suit the height you want for each item.

 

Do this in the editor for each item. Once you find the correct height for the first piece, then the rest of them should all be the exact same height (if the pieces are the same type).

Link to comment
Share on other sites

  On 8/7/2014 at 4:56 PM, blackwiddow said:

For the bridge pieces make them "LOCKED" in the Vehicle Lock setting and apply this to the Vehicle Init:

 

this setPosASL [getposASL this select 0, getposASL this select 1, -2.5]

 

Obviously edit the -2.5 to suit the height you want for each item.

 

Do this in the editor for each item. Once you find the correct height for the first piece, then the rest of them should all be the exact same height (if the pieces are the same type).

 

This doesnt work well as i know because of setPosASL (set pos above sea level). Which means, sea = waves = some parts will be go higher or lower. Better is to use a script (for straight bridges) or use setPosATL (much more work on this, because find the correct height).

A Masterpiece to show you what i mean :D

unbenannt-27zuc7.jpg

1 & 2 = Bridge parts

Both bridges are 2,5m "Above-Sea-Level" (ASL), but different heights with "above-terrain-level" (ATL)

 

atlk2kqd.jpg

Link to comment
Share on other sites

  On 8/8/2014 at 2:13 AM, Fully said:

Have a look at this?

http://opendayz.net/threads/building-bridges.19536/#post-100415

Very easy to set up, you only place the first one down, work out how many you need. =)

Fully, can you give me instructions on how to put it into my server and create the bridge, knid of new to 3d editing.

 

Thanks, 

 

Shane

Link to comment
Share on other sites

  On 8/8/2014 at 2:32 AM, sinanc said:

This doesnt work well as i know because of setPosASL (set pos above sea level). Which means, sea = waves = some parts will be go higher or lower. Better is to use a script (for straight bridges) or use setPosATL (much more work on this, because find the correct height).

A Masterpiece to show you what i mean :D

unbenannt-27zuc7.jpg

1 & 2 = Bridge parts

Both bridges are 2,5m "Above-Sea-Level" (ASL), but different heights with "above-terrain-level" (ATL)

 

atlk2kqd.jpg

Jesus Christ is that a image host or an arcade?

Link to comment
Share on other sites

There is a bridge there now :P

YDUM8XN.jpg

 

 

LkXQQBU.jpg

 

napf_lausen_bridge.sqf

 

  Reveal hidden contents

 

Link to comment
Share on other sites

Thanks Fully, so yes, I see the different bridge materials react different to the values. I got the stone bridge to work from Awols Airport to the north island, but try using the same exact coordinates with wood or concrete and it doesnt work...:)

Link to comment
Share on other sites

  On 8/13/2014 at 1:29 PM, King. said:

Thanks Fully, so yes, I see the different bridge materials react different to the values. I got the stone bridge to work from Awols Airport to the north island, but try using the same exact coordinates with wood or concrete and it doesnt work... :)

Are you talking about the Suhrenfeld Array island?  Can you run those bridges over the deep parts of the ocean like that?  That would be longer than that bridge on Taviana lol.  Or are you talking about those islands to the west?

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  On 8/13/2014 at 1:29 PM, King. said:

Thanks Fully, so yes, I see the different bridge materials react different to the values. I got the stone bridge to work from Awols Airport to the north island, but try using the same exact coordinates with wood or concrete and it doesnt work... :)

would you be willing to share that bridge? I can't get the thing fullyposted to work and the bridges keep turning and misaligning .

Link to comment
Share on other sites

  On 10/17/2014 at 6:42 PM, DayZDrDoom said:

would you be willing to share that bridge? I can't get the thing fullyposted to work and the bridges keep turning and misaligning .

 

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?

Link to comment
Share on other sites

  On 10/18/2014 at 3:59 AM, Fully said:

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?

 

 

 

 

Link to comment
Share on other sites

Like this?

 

r4Rjhte.jpg

 

 

Throw this into your dayz_server.pbo

  Reveal hidden contents

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...