And yet another error! AARGH
by Tasty Green Pees :-, · in Torque Game Engine · 02/19/2006 (2:20 pm) · 2 replies
I followed the tutorial to use the rocket launcher. In player.cs I added these lines as advised:
It seems to work fine but this error is grating me. Help please.
function PlayerShape::onAdd(%this,%obj)
{
parent::onAdd( %this, %obj );
%obj.mountImage( RocketLauncherImage, 0 );
%obj.setImageAmmo( 0, 1 );
}It seems to work fine but this error is grating me. Help please.
tutorial.base/server/player.cs (636): Unknown command onAdd.
About the author
Torque 3D Owner Martin "Founder" Hoover
The simple solution is to comment out the line, a better solution is to determin if playerShape is the proper name for the class or if it should be something else.