Func nav prefer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎Entity description: Cost description)
Line 3: Line 3:
==Entity description==
==Entity description==


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| 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==

Revision as of 11:51, 1 September 2021

Template:Tf2 brush

Entity description

Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area.

Note.pngNote: For this entity to take effect, it's volume must cover an entire nav cell to take effect on that cell.
Note.pngNote: 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

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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 theEnableinput).
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


tags ([todo internal name (i)]) <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