Game Development Community

Stop kork

by Joel Hargarten · in Torque Game Engine · 11/07/2005 (2:58 pm) · 10 replies

Hey.
How do I stop kork from moving? Also, where do I generally go to edit his behavior? Thanks.

#1
11/07/2005 (3:08 pm)
The main AI script is:
starter.fps/server/scripts/aiplayer.cs

or in demo/server/scripts/aiplayer.cs

depends on what you using.
#2
11/07/2005 (3:09 pm)
Also:
www.codesampler.com/torque.htm

down at the bottom there is a tut called "Bot Path-Finding"
#3
11/07/2005 (3:37 pm)
What exactly am I supposed to take out in aiplayer.cs to stop kork from moving? I erase a bunch of things in there, but then he is erased from the game. I just want him to stand there for now.
#4
11/07/2005 (3:57 pm)
Setmovelocation or something like that tells him where to go setaimlocation tells him where to aim delete those and he won't move.
#5
11/07/2005 (4:33 pm)
Or if you want to stop him without messing with scripts then open mission editor and simply delete paths, so kork will no longer know where to go next ;)
#6
11/07/2005 (6:30 pm)
Within the follow path command, change the -1, to the node you want him to stop at.
-1 = loop
1, 2, 3, 4, 5...= path node destination.
#7
11/07/2005 (8:55 pm)
$kork.stop();


will stop him where he's at... provded $Kork= his id.
#8
11/08/2005 (11:26 am)
When I change the path destination from '-1' or when I add in %player.stop, it just makes kork dissapear from the game entierly.
#9
11/08/2005 (12:17 pm)
%kork.stop() shouldn't do that. i've used it many times and it just stops them from running around.
#10
11/08/2005 (12:27 pm)
Well maybe I didn't do it right, but I got kork to stop by going into aiplayer.cs and changeing
'%player.followPath("MissionGroup/Paths/Path1",-1);
to
'%player.followPath("",-1);''