Thread: [DFBHD] Convoy Control
View Single Post
  #1  
Old 03-23-2019, 12:57 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Convoy Control

Often control of convoys can be complex and event consuming, especially when you want the player to be able to get on and off the vehicles.


Methods using the event editor usually include using lots of 3D area triggers and event conditions.


If you're building a mission using custom files then a simple wac script can help reduce of lot that work.


This script will stop and start a vehicle by detecting the player.


The the vehicle is ssn 1 and meride denotes when the player is on top of the vehicle.

ssncspd = Combat Speed

ssnpspd = Patrol Speed


Set your vehicle to a waypoint, in this case I use a Friendly 5 Ton Truck (F5tonD) then add this script to the WAC


Code:
if meride(1) then
ssncspd(1, 30)
ssnpspd(1, 30)
else
ssncspd(1, 0)
ssnpspd(1, 0)
endif

Last edited by Guest001; 03-23-2019 at 01:29 PM.
Reply With Quote