Game Development Community

Enemy A.I. Spawning Question

by muskydragon · in Torque Game Engine · 05/07/2009 (2:26 pm) · 2 replies

We are Using Killer Kork in our classroom project and we are trying to get the A.I. to spawn on one Marker of the Path Right now it is spawning on all of them.

We want the A.I, to spawn on just Marker 1 and then follow the proceeding markers, instead of spawning on all 16 path markers.

About the author


#1
05/07/2009 (10:29 pm)
try something like...
// gets the 1st node in the path
%node = %path.getObject(0);  

// (This will be your spawning function)
%player = spawnYourDudeFunction(%node.getTransform());
%player.followPath(%path, -1);  // -1 will make the bot run to the first node
#2
05/12/2009 (12:43 pm)
That didn't seem to work the A.I still stays in one area and doesn't seem to move to the other areas.