OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 03 Jun 2008, 18:28:40

Title: Bus routes?
Post by: Crowey on 03 Jun 2008, 18:28:40
Hi guys thanks for all the info you lot have given me up to now its much apreciated....
My next noob query is this....I want an ai Bus/ural to be given a waypointed route but dont want it to move from its start point till my player controlled unit enters the vehicle, then go along the alotted route then stopping to let me out, then driving off into the sunset..... :dunno:
Title: Re: Bus routes?
Post by: Mr.Peanut on 03 Jun 2008, 20:12:23
Use the WP condition field for the first WP.
Code: [Select]
myUnit in MyVehicle
Title: Re: Bus routes?
Post by: johnnyboy on 04 Jun 2008, 04:48:52
You can also control this from triggers or scripts, via the lockwp command. 

This line of code will prevent the bus from going to the next waypoint.

Code: [Select]
myBus lockWP true;

This line of code allows bus to continue to next waypoint:

Code: [Select]
myBus lockWP false;