Fallen Guardian Posted January 8, 2011 Share Posted January 8, 2011 For K1 I'm trying to make NPCs walk waypoints. Yes I have looked at the tutorials and I am confused because they still stand still. I was just wondering if anyone could help. Link to comment Share on other sites More sharing options...
Nick Vader Posted May 3, 2011 Share Posted May 3, 2011 For K1 I'm trying to make NPCs walk waypoints. Yes I have looked at the tutorials and I am confused because they still stand still. I was just wondering if anyone could help. Tell you the truth, I too am quite confused with how they work. Anyway, if you want the character/NPC to just walk around randomly, you'll have to change his Heartbeat slot of the scripts in his tab in Ktool, to the name of a new script that you'll make, which will contain this: void main() { AssignCommand(OBJECT_SELF,ActionRandomWalk()); } Link to comment Share on other sites More sharing options...
TimBob12 Posted May 3, 2011 Share Posted May 3, 2011 Waypoints are heavily reliant on the filenames so make sure that they are all correct. Also I found that SithSpector's tutorial underneath was easier to follow than tk102's. Nick: When writing code use the (code) (/code) - but replace () with [] Tags Link to comment Share on other sites More sharing options...
Dak Drexl Posted May 3, 2011 Share Posted May 3, 2011 Tell you the truth, I too am quite confused with how they work. Anyway, if you want the character/NPC to just walk around randomly, you'll have to change his Heartbeat slot of the scripts in his tab in Ktool, to the name of a new script that you'll make, which will contain this: void main() { AssignCommand(OBJECT_SELF,ActionRandomWalk()); } I tried this and it kind of sucks. The NPC it's assigned to takes one step in a random direction, stops, waits a little, and then takes another step randomly. It doesn't sound too bad, but the NPC might as well not move because it does so little. Am I doing something wrong or is there a way we can modify the RandomWalk command so that the NPC takes more steps? Link to comment Share on other sites More sharing options...
Nick Vader Posted May 3, 2011 Share Posted May 3, 2011 When writing code use the (code) (/code) Tags Was in a bit of a hurry at the time... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.