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.
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());
}
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
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?
When writing code use the (code) (/code)
Tags
Was in a bit of a hurry at the time...