Home   Help Search Login Register  

Author Topic: buses not staying on road  (Read 335 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
buses not staying on road
« on: 27 Apr 2003, 19:16:33 »
 :afro:On the island of norgova, I am running bus routes, I got everything right except one thing.  While the bus crosses the bridge, in the middle somewhere, it runs off the road and bumbs the car divider, then gets back on track.  After it crosses the bridge, it does not want to stay on the road at all.  The route prior to the bridge is A OK, everything after is messed up.  What is the matter?  I am getting the bus to move with move waypoints.  

 :)thank you for your time and energy, assistant x :)

CrashnBurn

  • Guest
Re:buses not staying on road
« Reply #1 on: 27 Apr 2003, 22:50:15 »
If you're using the move command instead of waypoints, use object id's for locations...specifically, use road section id #'s. Also, make sure the bus driver's behaviour is set to careless. Here's a copy of one of my bus scripts. Just stick a bus with driver on the road in the town of Loukov. Give it a name and execute this script using the busname-
example: [bus1] exec "busline1.sqs"

;Bus line 1 starts in Loukov moving South
;---------------------------------------------
_unit = _this select 0

#start
? !(canmove _unit): exit
_unit move getpos (object 136176)
@ Unitready _unit
_unit stop true
~1
_unit setdir 90
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Bitov"
_unit stop false
_unit move getpos (object 136171)
@ Unitready _unit
_unit move getpos (object 134629)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Lany"
_unit stop false
_unit move getpos (object 274)
@ Unitready _unit
_unit stop true
~1
_unit setdir 90
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Lipany"
_unit stop false
_unit move getpos (object 6378)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Okrouhlo"
_unit stop false
_unit move getpos (object 17796)
@ Unitready _unit
_unit move getpos (object 26089)
@ Unitready _unit
_unit move getpos (object 57847)
@ Unitready _unit
_unit move getpos (object 57852)
@ Unitready _unit
_unit move getpos (object 173142)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop St. Sedlo"
_unit stop false
_unit move getpos (object 172484)
@ Unitready _unit
_unit move getpos (object 171664)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Lipany"
_unit stop false
_unit move getpos (object 171568)
@ Unitready _unit
_unit move getpos (object 31626)
@ Unitready _unit
_unit move getpos (object 6378)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Lany"
_unit stop false
_unit move getpos (object 6322)
@ Unitready _unit
_unit move getpos (object 274)
@ Unitready _unit
_unit stop true
~1
_unit setdir 90
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Bitov"
_unit stop false
_unit move getpos (object 134570)
@ Unitready _unit
_unit move getpos (object 134629)
@ Unitready _unit
_unit stop true
? !(canmove _unit): exit
?(getdammage _unit > 0.1 and canmove _unit): _unit setdammage 0
_unit setfuel 1
~random(30) + 30
?(player in _unit): _unit globalchat "Next stop Loukov"
_unit stop false
_unit move getpos (object 136170)
@ Unitready _unit

goto "start"



« Last Edit: 27 Apr 2003, 22:58:13 by CrashnBurn »