Home   Help Search Login Register  

Author Topic: Bus routes?  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline Crowey

  • Members
  • *
Bus routes?
« 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:

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Bus routes?
« Reply #1 on: 03 Jun 2008, 20:12:23 »
Use the WP condition field for the first WP.
Code: [Select]
myUnit in MyVehicle
urp!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Bus routes?
« Reply #2 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;
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...