Game Development Community

RTS prototype Unknown command setMoveDestination.

by gowinder · in Torque Developer Network · 01/12/2010 (2:56 am) · 3 replies

when i follow the document to the rts prototype, after i add
if( %scanTarg )
{
ClientGroup.getObject(0).player.setMoveDestination( getWords(%scanTarg, 1, 3) );
}
in scripts/gui/playGui.cs at the PlayGui::onRightMouseDown function,then i run the demo to test it with torsion, at the output window there is an error:
scripts/gui/playGui.cs (84): Unknown command setMoveDestination.
Object (3244) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject

what is my problem?
Please help me guys!

About the author

Recent Threads


#1
01/12/2010 (6:37 am)
When you create the player object. Create it as AIPlayer, not Player.
#2
01/12/2010 (9:12 pm)
i'll try , thanks!
#3
01/12/2010 (9:18 pm)
it really works!
thanks JANR!
what is the different between player and AIPlayer?
Dose the AIplayer have the path find method?