Vehicle damage application problem
by Kimberly Unger · in Torque Game Engine · 03/08/2004 (5:45 pm) · 2 replies
Hi;
We are having a problem with inflicting damage on a vehicle that is also our player. When ever a projectile hits the vehicle (onCollision) we call the damage() function and get the error message in the log.
P51/server/scripts/rocketLauncher.cs (760): Unknown command damage.
Object (1580) FlyingVehicle -> Vehicle -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
Can anyone tell me what the error message is trying to tell me and how to fix it?
Thanks
Beau (Kim's Programmer)
We are having a problem with inflicting damage on a vehicle that is also our player. When ever a projectile hits the vehicle (onCollision) we call the damage() function and get the error message in the log.
if (%col.getType() & $TypeMasks::ShapeBaseObjectType)
{
%col.damage(%obj,%col, %pos,%this.directDamage, "Missile");
}P51/server/scripts/rocketLauncher.cs (760): Unknown command damage.
Object (1580) FlyingVehicle -> Vehicle -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
Can anyone tell me what the error message is trying to tell me and how to fix it?
Thanks
Beau (Kim's Programmer)
Torque 3D Owner Martin "Founder" Hoover
Conversely, if you have a function named Vehicle::Damage() ensure that the file containing it does not have a syntax error in it, thus keeping the function from actually loading.