Jump to content
Sign in to follow this  
General Mcclintock

Convoy scripts

Recommended Posts

Well I got 2 questions related to my ambush in Petrovice.

I need some vehicles, some tanks a truck and a Vulcan to move as a convoy, problem is that they drive more off road than on road, and secondly, their spacing is a mile off, they need to be closer, they will drive into a locked off street where the players (Multiplayer coop map) will open up on the rear and front tank, trapping the convoy.

However, I am in need of a convoy script for resistance and now for the second one.

How do I make the triggers synced so that once the convoy and infantery is eliminated using Chechen tactics some gunships and infantery will arrive in the town turning the tables to defense.

I tried some way but they still keep coming too early while I am still working on the convoy.

Any way to fix that?

Share this post


Link to post
Share on other sites

you must makea waypoint for the convoy and have it on: formation, colomn and behavior, sefe then

(this will only work if the convoy is 1 group.)

if you want soldiers in the trucks(that not are in the group) you wrhite<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this move incargo ural1

where ural1 are you can put the name of the viencle that you want the soldier start in.

Share this post


Link to post
Share on other sites

Cannot remember where I got this from sorry, but hope it helps. Credit goes to who ever made this.

; Script Call:

;

; 1: [15, 25, 2, _car1, _car2 ] exec "convoy.sqs"

; 2: [15, 25, N, _car1, ......, _carN ] exec "convoy.sqs"

;

; _stdis = minimum distance between cars

; _limdis = maximum distance between cars

; _nrCars = Number Of Cars in the convoy

_stdis = _this select 0

_limdis = _this select 1

_nrCars = _this select 2

#Start

_vStart = 3

_vEnd = 3 + _nrCars

#Check

_car1 = _this select _vStart

_car2 = _this select (_vStart+1)

_distance = _car1 distance _car2

?( _distance < _stdis ): _car2 Stop true;

_car2 Stop false

?( _distance < _limdis ): _car2 SetSpeedMode "LIMITED"

_car2 SetSpeedMode "NORMAL"

_vStart = _vStart + 1;

?( _vStart < (_vEnd - 1) ): Goto "Check"

~5

Goto "Start"

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×