Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Rydygier

Avatar / Picture

IFR Team
Registered:
Posts: 179
Reply with quote  #1 
Lately tried to write some script to achieve that in "natural way", so units will actually move on the bridge from one river side to another.

Works well with single machines, part of the code is wip to make it working also with groups of vehicles. Well. Limited luck for now. Sometimes works for two cars.

Not 100% reliable, sometimes driver can mysteriously stuck on the bridge and ignore any further move orders... No time for more tweaking atm, in current form it is rather conception for more work/improvement than ready solution, still can be useful as is for some - it is functional.

In general is working also for infantry, but is intended for vehicles.

Usage:

BC.sqf must be present in the mission folder.

To init whole thing (eg in init.sqf):

call compile preprocessFile "BC.sqf";

To use:

Set for the vehicle a waypoint just at the front of the bridge. In waypoint's act field put:

{if not ((vehicle _x) getVariable ["isCrossing",false]) then {(vehicle _x) setVariable ["isCrossing",true];nul = [vehicle _x,getPosATL tr1] spawn RYD_MF}} foreach (units (group this))


Rest of the waypoints, if any - as you wish on the other side of the river.

At the second end of the bridge put empty trigger named tr1. (placement must be exact, so paired with starting waypoint should appoint bridge axis)

See below attached mission example with proper setting.

 
Attached Files
zip BridgeCrossing.Baranow.zip (3.06 KB, 14 views)

0
Chief

Sergeant
Registered:
Posts: 115
Reply with quote  #2 
Cheers. This also works very nicely in Arma 3. Thanks for sharing.
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,758
Reply with quote  #3 
Now hosted on the MR
http://www.missionrepository.com/IF%20Scripts/BridgeCrossing.Baranow.zip
Listed under scripts on the menu.

__________________
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.