Is it possible to have an AI vehicle ?
by Bruno Grieco · in Torque Game Engine · 04/23/2004 (3:36 pm) · 6 replies
Thanks to you guys I managed to transform my player in a flyingVehicle.
Now I need to add the flying Bots.
But as I understood, the AIPlayer Class inherits from a Player Class. Can this be modified so that it inherits from a FlyingVehicle Class ?
If not, how I'll make a player class fly ?
TIA
Bruno
Now I need to add the flying Bots.
But as I understood, the AIPlayer Class inherits from a Player Class. Can this be modified so that it inherits from a FlyingVehicle Class ?
If not, how I'll make a player class fly ?
TIA
Bruno
About the author
#2
But I'll REALLY need some guided help in what you are suggesting. lets do it step by step.
Ok, I turned my flying bots into player classes. And they follow a pre-defined path on the ground.
Q1) those bots are supposed to be crows, there should be lots of them. Should I do an invisible player and use a crow vehicle or should they be crows with an invisible vehicle ? They should flap their wings and ocasionaly they will loose their tails. I dunno if vehicles can be attached to DSQs.
Bruno
04/23/2004 (5:56 pm)
Thanks Badguy,But I'll REALLY need some guided help in what you are suggesting. lets do it step by step.
Ok, I turned my flying bots into player classes. And they follow a pre-defined path on the ground.
Q1) those bots are supposed to be crows, there should be lots of them. Should I do an invisible player and use a crow vehicle or should they be crows with an invisible vehicle ? They should flap their wings and ocasionaly they will loose their tails. I dunno if vehicles can be attached to DSQs.
Bruno
#3
06/29/2004 (7:35 pm)
How did you turn your bots into flying vehicles, Bruno?
#4
06/30/2004 (5:48 am)
I didn't. I just made em fly.
#5
This is a AIPlayer object I take it? How did you make them flying?
I've tried creating the flying vehicle and mounting the AIplayer into them, but it didn't like that (crash.)
06/30/2004 (6:26 am)
Well, that would do. How did you make them fly? :)This is a AIPlayer object I take it? How did you make them flying?
I've tried creating the flying vehicle and mounting the AIplayer into them, but it didn't like that (crash.)
Torque Owner Badguy
first you get your little ai guy to contain the logic to mount and unmount vehicles. (can script this)
then provide him with the logic to identify when he is in a vehicle (c++ code needed here:read below why)
because you need to special case his movement logic
the way he calculates move's changes.
you now need to know how to rotate him to his goal and teach him how to use the throttle/brake