Game Development Community

AIPlayer.setMovementSpeed doesn't work

by gamer · in Torque Game Engine · 12/05/2006 (9:05 pm) · 2 replies

Hi,
I call AIPlayer.setMovementSpeed(5) then AIPlayer.setMoveDestination(destination); but the AIPlayer still slides at his max speed toward the destination.
has anyone gotten this prob before?
thanks!

#1
12/06/2006 (12:38 am)
I also think that AIPlayer.setMoveTolerance() is not recognized in torque script even though it is defined in the C++ file. I'm not sure why though...
#2
12/06/2006 (3:25 am)
setMoveTolerance () works just fine, however, setMovementSpeed () is limited in that if your AIPlayer object can not run faster than 42 (set in the datablock) you will not be able to set it higher either, just lower.