Game Development Community

Help!!! With changine the ai player body

by Max Thomas · in Torque Game Engine · 11/02/2004 (5:30 pm) · 3 replies

Hello all,

As you can probably see my stupidity is actin up. What I need help with is changing the standard aiplayer body into a completly different bod without changine the player body whatsoever. Shortly it's that I need is the player and the Aiplayer to have different bods. Perdy simple right... Well it prolly is... So help me please!

Thanks, Max

#1
11/02/2004 (5:48 pm)
Actually now that I think of it Is it possible to put all the stuff from player.cs that is needed into "aiplayer.cs"?
#2
11/13/2004 (8:58 am)
Hey Max,

take a peek in aiplayer.cs
you'll see this
datablock PlayerData(DemoPlayer : PlayerBody)
{
   shootingDelay = 2000;
};

change it to something like this

datablock PlayerData(DemoPlayer : PlayerBody)
{
   shootingDelay = 2000;
   shapeFile = "~/data/shapes/mycustomshape.dts";
};


for your second question, yes, most of the stuff, although you'll have to work with it a bit. AIPlayer is a subclass of player, so all the player functionality gets added automatically, if you want to change the way something works that's different and you'll have to override it yourself.
#3
11/13/2004 (12:35 pm)
Thanks Clint. howevery I just figgered it out all by meself yestaday.