IRONFRONT FANS FORUM
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Tayuk

Avatar / Picture

Admin
Registered:
Posts: 455
Reply with quote  #1 
Download: Get AI vehicles to cross bridges

Create trigger on north side of bridge.

Name the Trigger:
Bridge2North
Set Trigger to: Repeatedly for anybody
Also Set to: Timeout 0,0,0

Condition:
This

On Act:
script = ["Bridge2South",thisList] execVM "triggerBridge.sqf";
 


Create trigger on South side of bridge.

Name the Trigger: Bridge2South
Set Trigger to: Repeatedly for anybody

Condition:
This


On Act:
script = ["Bridge2North",thisList] execVM "triggerBridge.sqf";


triggerBridge.sqf

_marker = _this select 0;
_pUnit = _this select 1;

_pVehicle = [];

{
if(!isPlayer driver vehicle _x) then
{
if!(vehicle _x in _pVehicle) then { _pVehicle set[count _pVehicle,vehicle _x]; };
};
} forEach _pUnit;

{
_x setPosATL ([getMarkerPos _marker,8,random 359] call fnCalcPos);
} forEach _pVehicle;
0
Santa Six

Avatar / Picture

Colonel
Registered:
Posts: 360
Reply with quote  #2 
What size and where exactly do I place the triggers. The Pz4 I tested with always drives into the water right of the bridge. 
0
Tayuk

Avatar / Picture

Admin
Registered:
Posts: 455
Reply with quote  #3 

Move the waypoint so that the way point line is closer to the left of the bridge, i actually cant see at all what the above script does and when i do it now i just use waypoints.  Its not always successful and convoys struggle, but single vehicles seems to work ok. I have a way point approx halfway along the bridge and as long as the waypoint line leading upto the bridge is to the left the tank drives straight onto it. Also set them to careless or safe as any action nearby causes them to do odd things.

0
theOden

Corporal
Registered:
Posts: 42
Reply with quote  #4 
Have a look at MOUT (old version, I think) Baranow (http://odenhouse.servegame.com/mout_R.Baranow.zip)


Good luck.

Edit: mind the markers, that's where AI vehicles end up.
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,752
Reply with quote  #5 
TheOden Welcome to the Iron Front Fan forums, thanks for joining and posting, just want to note that we have a 100kb rule for screenshots and pictures.
Yours is currently 215.21 KB , if you could please reduce the size.

__________________
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,752
Reply with quote  #6 
1st post has been updated with download link to the script, which is now hosted on the MR:

download here
Get AI vehicles to cross bridges

__________________
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.