function onMissionLoaded()
{
// Called by loadMission() once the mission is finished loading.
new ScriptObject(AIManager){};
MissionCleanup.add(AIManager);
AIManager.think();
}
function onMissionEnded()
{
// Called by endMission(), right before the mission is destroyed
AIManager.delete() ;
}
Now make multiple bots. The botRandomMany.cs file spawns off multiple bots.
Next get a bot to follow a predefined path. The botAlongPath.cs file assumes you create a path using the Torque editor GUI. The tutorial linked to above explains the GUI usage steps very well.
Finally, add terrain and collision detection between your player and the bots.