Jump to content

Home

Waypoints


Fallen Guardian

Recommended Posts

  • 3 months later...
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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...