Author Topic: Is there an event to control a vehicle's path?  (Read 1093 times)


Unless it's being driven by a bot or you somehow add velocity in a certain direction, no. You cannot direct a vehicle to drive with nothing to drive it, and if you add velocity in one direction, it won't turn the vehicle, anyways.
I may be wrong, though. That's as far as I know.

You can use velocity, and it may be possible to use Kalphiter's "SetVehicleRotation" Event.

Alright then. Is there a way to put a bot in a vehicle and have him drive? When will he know he reached the brick with the events on?

Would zonebricks work???

There is, but using any current Add-Ons doesn't allow the bot to drive in any evented direction.  It will drive in random directions.  The best solution is to put a bot in the driver's seat and just make him do the hug animation.  Do NOT assign any movement events.

Yes, zonebricks would work, but you would still need the vehicle to have rotation events.

There is, but using any current Add-Ons doesn't allow the bot to drive in any evented direction.  It will drive in random directions.  The best solution is to put a bot in the driver's seat and just make him do the hug animation.  Do NOT assign any movement events.

Yes, zonebricks would work, but you would still need the vehicle to have rotation events.

Bots can easily be commanded to jump into vehicles and then drive them in a set path without spamming or performing idle movement. This is all possible by default. When I said a vehicle can't be driven unless by a bot, I meant that it can't be made to drive without a driver of some sort.
« Last Edit: April 21, 2013, 06:46:25 PM by Pliny »

Whoa. Neat. Does this mean if I put a bot in a back seat he'll fire?

Bots do shoot while in vehicles in minigames, but they don't seem able to operate Tank turrets or similar bot-weapons, and my memory's a little fuzzy on the matter. The bot development thread has a full list of the Bot events available, and there is an add-on available if you don't want to go through the trouble of eventing the bot not to do anything (though this only takes two events to do if I remember correctly.) Really, the best way to find out what bots can do is both to observe what's been done with 'em already and also to experiment.

On bots in the backseat again, I'm not sure if there's an event to make bots swap vehicle seats, and you'd also want to event the bot not to move, but only to attack (whom to attack is set via bot "teams", also default) in minigames.

Bot events right now are VERY flexible, but you need to learn and experiment with them to figure 'em out.

put a bot inside it
hide all the bot's nodes
car that drives it's self