MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / followNavPath

Method followNavPath

Engine/source/T3D/aiPlayer.cpp:875–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875void AIPlayer::followNavPath(NavPath *path)
876{
877 if(!isServerObject())
878 return;
879
880 // Get rid of our current path.
881 clearPath();
882 clearCover();
883 clearFollow();
884
885 // Follow new path.
886 mPathData.path = path;
887 mPathData.owned = false;
888 // Start from 0 since we might not already be there.
889 moveToNode(0);
890}
891
892DefineEngineMethod(AIPlayer, followNavPath, void, (SimObjectId obj),,
893 "@brief Tell the AIPlayer to follow a path.\n\n"

Callers 1

aiPlayer.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected