making npc walk around Created 11 years ago2012-07-18 08:23:29 UTC by tschumann tschumann

Created 11 years ago2012-07-18 08:23:29 UTC by tschumann tschumann

Posted 11 years ago2012-07-18 08:23:29 UTC Post #308003
I'm trying to make an npc walk around a building continuously (I'm doing this in Zeno Clash).
I looked at one of the example Half-Life 2 maps in the Source SDK and it used path_corner entities chained together.
Anyway, I've got an npc and I've set its Target Path Corner to the name of a nearby path_corner (384 units), and it points to another path_corner and so on.
The npc doesn't move though. Is there something I' missing? The Valve Developer wiki mentions being able to use an aiscripted_schedule or scripted_sequence as well but it doesn't say how.
Posted 11 years ago2012-07-18 22:35:56 UTC Post #308048
The entity which you will need to mess around with is this Aiscripted_schedule

Read up on that article and you'll know exactly what to do.
You'll still youse path_corners to decide the route, but the schedule will be what's controlling the NPC.

Good luck!
Madcow MadcowSpy zappin my udder
Posted 11 years ago2012-07-19 01:16:46 UTC Post #308066
Thanks, I'll give it a go.
Posted 11 years ago2012-07-19 02:23:36 UTC Post #308068
Okay I tried that and the npc walks to the first path_corner but doesn't go any further. Any ideas?
Posted 11 years ago2012-07-19 08:57:25 UTC Post #308092
have you set the path_corner's next target to be another path_corner in it's properties?
Madcow MadcowSpy zappin my udder
Posted 11 years ago2012-07-19 09:33:48 UTC Post #308093
Yeah, I've set the next target to another path_corner, and there's a yellow line being drawn between them so it looks like they're connected logically too.
Posted 11 years ago2012-07-19 18:19:13 UTC Post #308114
Have you placed out info_nodes every 20 or so units where you want the npc to walk? If there aren't any info_nodes between the path_corners then the npc will ignore them.
Madcow MadcowSpy zappin my udder
Posted 11 years ago2012-07-19 22:10:37 UTC Post #308116
No I didn't. The Valve Developer wiki said that info_node entities weren't necessary. I'll give it a go anyway.
Posted 11 years ago2012-07-21 21:46:25 UTC Post #308214
That's bs, you can't even get an npc to walk in a straight line (unless it's under say 200 units) without nodes. Let alone make it navigate around obstacles and corners.
Madcow MadcowSpy zappin my udder
Posted 11 years ago2012-07-22 03:12:26 UTC Post #308240
I tried that and it still didn't work.
You must be logged in to post a response.