Func nav prefer: Difference between revisions
Jump to navigation
Jump to search

Note: For this entity to take effect, it's volume must cover an entire nav cell to take effect on that cell.
Note: The path cost of moving through this nav area is 4% of the regular cost. While unlikely, other paths could have a value lower than the preferred path.
m (this really isn't a stub) |
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.) |
||
(10 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
== | {{LanguageBar}} | ||
{{ent not in fgd}} | |||
{{CD|CFuncNavPrefer|file1=1}} | |||
{{this is a|brush entity|name=func_nav_prefer|game=Team Fortress 2|game1=Counter-Strike: Source|game2=Black Mesa}} | |||
Artificially makes bots prefer a certain area when choosing navigation paths. | Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area. | ||
{{note| For this entity to take effect, it's volume must cover an entire nav cell to take effect on that cell.}} | |||
{{note| The path cost of moving through this nav area is 4% of the regular cost. While unlikely, other paths could have a value lower than the preferred path.}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV EnableDisable}} | {{KV EnableDisable}} | ||
{{KV | {{KV TeamNum}} | ||
{{KV|tags|string|additional context for if the entity should apply to a specific bot}} | {{KV|Tags|intn=tags|string|additional context for if the entity should apply to a specific bot}} | ||
==Inputs== | ==Inputs== | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
==See | ==See also== | ||
* | * {{ent|func_nav_avoid}} that does the opposite task, makes bots avoid a path. |
Latest revision as of 17:55, 18 July 2025


![]() |
---|
CFuncNavPrefer |
![]() |
func_nav_prefer
is a brush entity available in Team Fortress 2,
Counter-Strike: Source, and
Black Mesa.
Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area.


Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
TeamNum:
- Initial Team (TeamNum, or teamnumber
) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator, Spectator/Halloween Souls
- 2: RED
, Survivors
, Terrorists
, Marines (Team-based game modes only)
- 3: BLU/Robots
, Infected
, Counter-Terrorists
, Scientists (Team-based game modes only)
- 5: Halloween Bosses (only in
) !FGD
- Tags (tags) <string>
- additional context for if the entity should apply to a specific bot
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
See also
- func_nav_avoid that does the opposite task, makes bots avoid a path.