Game Development Community

ConsoleMethod setMoveTolerance missed

by Qbound · in Torque 3D Professional · 05/28/2009 (1:41 pm) · 0 replies

Hi,

in the aiPlayer.cpp i missed the commands for the MoveTolerance. I don't really know if there is the right place for both commands. But after a recompile my bots found their destination :)

ConsoleMethod( AIPlayer, setMoveTolerance, void, 3, 3, "( float speed )"
              "Sets the movetolerance for an AI object.")
{
   object->setMoveTolerance( dAtof( argv[2] ) );
}

ConsoleMethod( AIPlayer, getMoveTolerance, S32, 2, 2, "()"
              "Returns the movetolerance.nn")
{
   return object->getMoveTolerance();
}

bye
Oliver