Game Development Community

ANOTHER PROBLEM AIWheeledVehicle

by Diego Castaneda · in Torque 3D Professional · 06/28/2009 (5:22 pm) · 7 replies

the console emits an error when i put the instruccion
%theBot = new AIWheeledVehicle()
{
dataBlock = pathFollower;
};
the error is:
unable to instantiate non-conobject class AIWheeledVehicle, so the AIcar doesn't appear.
i wonder if i have to declare this class myself. and if i have to, where should i declare it?

#1
06/28/2009 (5:30 pm)
Yep, there is no AIWheeledVehicle class. To achieve what you probably want to achieve, create an AIConnection/AIClient and make the wheeled vehicle the connection's control object.
#2
06/28/2009 (8:34 pm)
........ Thanks for the help but i'm really new programing in torque so, could you be a little more specific, because i don't know what you mean with the connection's control object and with the AIConnection/AIClient :) sorry about that, and do you know if tgea support this class and in wich file i can find it to use it like a guide to make my own in torque 3D. Thanks for the help and sorry about the newbie part jejejeje :p

ps: i'm trying to place an AIWheeledvehicle in my game. and in maurina's Multiplayer book it said that i have to use this class to achieve that and that torque has it.
#3
06/28/2009 (9:36 pm)
The AIWheeledVehicle class is/was part of TGE but not TGEa or Torque 3d. If you have TGE you can add/port the old code to Torque 3D.

A quick search of the Resources section of the site, found a TGEa port of it -- it's a little closer (codewise) to what you need, but may still require a little work to get it working in Torque 3D.
#4
06/28/2009 (11:14 pm)

Ah, you're definitely better off in Michael's hands here.

What I meant was creating an AIClient or AIConnection game connection (e.g. with the aiConnect method) and attaching your wheeled vehicle as its control object (using "setControlObject"). Basically, each connection to the server can have an object in the world that it controls. By setting the vehicle as the control object of the AI connection, it will execute the moves queued by the connection.
#5
06/29/2009 (1:59 pm)
hey thank you very much for the help, i'm so sorry if i bothered you too much
#6
11/13/2012 (2:15 pm)
I need RTS Toolkit and FGE(Flight Game Example).Also I need Aiflyingvehicle Class.pls send me any one can do.
Email:moj.heidari@yahoo.com
#7
11/13/2012 (2:52 pm)
@mojtaba
Both of those are 3rd party add-ons that were sold either via our store or the developer's store. Both of those kits require either a TGE or TGEA license both of which are no longer for sale. I'm not sure if the FGE was ever ported to T3D or not, but it would have to be purchased from the developer's store if it's still for sale. Other users cannot just share that code someone who does not have a license to it.

As a side note, this is the second or third time this has been pointed out to you. If you continue to ask users for code to other kits in the forums then your posting privileges may be revoked.