Game Development Community

setMoveDestination()

by Gennady · in Torque 3D Beginner · 08/08/2011 (4:39 pm) · 4 replies

Hello!
Clear the point, please: is it possible to make this method work with class WheeledVehicle?
So, the aim is to control the WheeledVehicle by script. Is there any kind of AIVehicle (a reference to AIPlayer)?
Thanks!

About the author

Specialist of International center for professional training in Rosatom Technical Academy


#1
09/19/2011 (10:47 am)
There was an AiVehicle resource(s) at one point, but without source access you wouldn't be able to re-implement the class.
#2
09/20/2011 (2:08 am)
Thanks for reply.
What you mean "re-implement"? Is this an individual class out of engine?
And what I need to do if perhaps I can access the source?
#3
09/20/2011 (9:17 am)
By re-implement he meant adding the code from the resource to the engine so that the class is available to use in your game.

Quote:
And what I need to do if perhaps I can access the source?

Are suggesting that you have access to the source currently?
#4
09/20/2011 (10:52 am)
The reason that I used the word re-implement is because an older version of Torque (TGE) included an AIWheeledVehicle class. It never made the transition to TGEa or Torque 3D, however there are various Resources that show how to add it back, as well as Resources that do similar for flying vehicles... but again comes the question of source access.

In script you could try faking things by mounting an AI player to a vehicle. Then issue your move destination to the driver instead of the vehicle.