Path corner

From Valve Developer Community
Revision as of 20:14, 21 September 2005 by Ts2do (talk | contribs)
Jump to navigation Jump to search
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Template:Wrongtitle

Entity Description

A path_corner_crash is synonymous to a path_corner

A path_corner is a destination for an NPC. When told to, NPCs will stop other movement and walk steadily towards a path_corner. It is entirely scripted behaviour.

Path_corners can be chained together to form more complex routes. To create a path_corner chain simply shift+drag an existing path_corner. The values will automatically be filled in. To manually make a chain (or link one up in a circle), edit the Next stop target property. Note that the Train Speed values are obsolete unless you are making a path for a func_train.

To make a NPC move to a path_corner edit the 'Target Path Corner' keyvalue, either in Hammer or through the I/O system. Alternately, an NPC can be made to follow a path_corner chain by using the aiscripted_schedule or scripted_sequence entities.

Limitations and bugs

  • A path_corner (or the first path corner on a chain) must be within 576 units for NPCs to find it.

Example

Example map (VMF)

Note that the example map does not have any info_nodes. They are not needed to have an NPC follow a path.

Keyvalues

<target_destination> Next stop target

Inputs

Outputs