Help needed with Cars, pathing them and triggers : )
by Maximillian Brewer · in Torque Game Engine · 02/03/2009 (2:44 am) · 4 replies
Hi!
I have implemented the buggy from starter.racing into my starter.fps, so that you can jump into the car, and drive it around, but I want to now add a pathed Ai that is the car model.
The AI car just needs to go on a simple path.
From Max
PS. Also, can I track when an AI buggy goes through the last trigger?
This is because I want to be able to check whether you have already been through the trigger, and if the Ai is there first, it displays You Lose in a box, and if you are first, it says you win!
I have implemented the buggy from starter.racing into my starter.fps, so that you can jump into the car, and drive it around, but I want to now add a pathed Ai that is the car model.
The AI car just needs to go on a simple path.
From Max
PS. Also, can I track when an AI buggy goes through the last trigger?
This is because I want to be able to check whether you have already been through the trigger, and if the Ai is there first, it displays You Lose in a box, and if you are first, it says you win!
About the author
#2
The tricky bit is getting the ai to follow a path competently. Please let me know if you've sorted this out nicely.
02/05/2009 (2:59 am)
Testing whether they're going through the trigger is the easy part. Just test for .isaicontrolled() and/or .isbot. The tricky bit is getting the ai to follow a path competently. Please let me know if you've sorted this out nicely.
#3
well as you know from the Ai vhechile forum, i am still working on my pathed car, but woul dyou have some step by step instructions for the testing to check if aicar is in trigger, then do something (eg. display a dialogue box)
From Max
Ps. Thanks
02/05/2009 (11:14 pm)
@leewell as you know from the Ai vhechile forum, i am still working on my pathed car, but woul dyou have some step by step instructions for the testing to check if aicar is in trigger, then do something (eg. display a dialogue box)
From Max
Ps. Thanks
#4
http://tdn.garagegames.com/wiki/WorldBuilding/MissionEditor/Creating_Triggers
They're pretty easy.
02/05/2009 (11:40 pm)
I don't, but what you want is to follow a tutorial on triggers. Search for one, or start here:http://tdn.garagegames.com/wiki/WorldBuilding/MissionEditor/Creating_Triggers
They're pretty easy.
Torque Owner Bill Vee
DayOfWar Studios
Simple AI Vehicle AIWheeledVehicle
AIWheeledVehicle2
AIWheeledVehicle steering aid