Creating a custom Bridge

  • Offline h4wk
  • Geared Up
  • **
  • Posts: 22

Creating a custom Bridge

« posted: May 30, 2022, 06:38 PM »
Here is a small guide how to create a custom Bridge (which looks really nice!)

Requirements:
https://steamcommunity.com/sharedfiles/filedetails/?id=689845793
https://steamcommunity.com/sharedfiles/filedetails/?id=1199850502

1. Open the Arma 3 Editor, choose a map which you like to edit (DO NOT save your map with these mods)

2. Place in Editor Tanoa Bridge structures so they fit together, until you are done.

3. Right click onto each Bridge Object and press "Export to script" > "as simpleObject" (now the Object should be saved to your clipboard)

4. Open a Text file and use Paste (CTRL+V)

5. Create inside the mapconfig folder a file called MAPNAMEBridge.sqf (for example: stratisBridge.sqf)

6. Into the .sqf copy/paste this:
Code: [Select]
{
    _obj = createSimpleObject [_x select 0, (ASLToAGL(_x select 1))];
    _obj setVectorDirAndUp (_x select 2);
    _obj setPosASL (_x select 1);
    [_obj] call A3W_fnc_setupMissionObject;
}
forEach
[
//OBJECTS
];

7. Open your Text file which you created in Step 4. and copy the line with the Object (for example: "["a3\structures_f_exp\infrastructure\bridges\bridgesea_01_ramp_f.p3d", [8513.92,3750.4,6.62099], [[-1,9.65599e-007,0],[0,0,1]]]")

8. Paste the entry into the .sqf in the line 9 which says "//OBJECTS"

9. At end it should look like this:
Code: [Select]
{
_obj = createSimpleObject [_x select 0, (ASLToAGL(_x select 1))];
_obj setVectorDirAndUp (_x select 2);
_obj setPosASL (_x select 1);
[_obj] call A3W_fnc_setupMissionObject;
}
forEach
[
["a3\structures_f_exp\infrastructure\bridges\bridgesea_01_ramp_f.p3d", [8513.92,3750.4,6.62099], [[-1,9.65599e-007,0],[0,0,1]]],
["a3\structures_f_exp\infrastructure\bridges\bridgesea_01_ramp_f.p3d", [8561.9,3750.4,10.8987], [[-1,9.65599e-007,0],[0,0,1]]],
["a3\structures_f_exp\infrastructure\bridges\bridgesea_01_ramp_f.p3d", [8609.88,3750.4,15.1749], [[-1,4.88762e-007,0],[0,0,1]]],
["a3\structures_f_exp\infrastructure\bridges\bridgesea_01_ramp_f.p3d", [8657.85,3750.41,19.4554], [[-1,9.65599e-007,0],[0,0,1]]]
];

10. Open up the init.sqf in the mapconfig folder and just add the line:
Code: [Select]
#include "stratisBridge.sqf" (or whatever your bridge is called)

Now disable the Mods in the Arma 3 Launcher and start your Server. (Mods aint needed to use these nice Bridge Structures)
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2650

Re: Creating a custom Bridge

« Reply #1 posted: Jun 01, 2022, 10:07 AM »
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 35

Re: Creating a custom Bridge

« Reply #2 posted: Jun 01, 2022, 03:57 PM »
now we can cross the altis gulf
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2650

Re: Creating a custom Bridge

« Reply #3 posted: Jun 01, 2022, 09:01 PM »
now we can cross the altis gulf

If you execute the 5th example in the script I put on that thread, it's exactly that, a bridge I carefully crafted to cross the Altis gulf. It even has street lights.
  • Offline h4wk
  • Geared Up
  • **
  • Posts: 22

Re: Creating a custom Bridge

« Reply #4 posted: Jun 03, 2022, 02:58 PM »
I'll just leave this here: https://forums.bohemia.net/forums/topic/225554-bridge-building-script/

nice, ive tried big bridges but not as big as your bridges.

did the 4th bridge work?

I've attached the bridge of stratis it goes from the very south to the uss carrier