func_nav_prerequisite
func_nav_prerequisite
is a brush entity available in Team Fortress 2. It is also available in Black Mesa. It is a trigger volume that requires bots to do perform a task before they can move through it.
Note:
func_nav_prerequisite
triggers are only registered by the Navmesh on round start. To register them late, the following VScript snippet can be used to force a nav mesh update.
RegisterScriptGameEventListener("round_start")
SendGlobalGameEvent("round_start", {})
Contents
Keyvalues
- Name
(targetname)
<string> - 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
- Task
(task)
<choices> - What must be done to move through this volume
- 1 : Destroy Entity (Value = max range to attack from. -1 for no range restriction)
- Bug:In , this task does not function.Confirm:Also for Black Mesa ?[todo tested in?]
- 2 : Move to Entity
- 3 : Wait (Value = seconds to wait)
- Task Entity
(entity)
<targetname> - The subject entity of the Task.
- Task Value
(value)
<float> - A Task-specific value.
|
Flags
Everything (not including physics debris) Clients (Survivors, Special Infected, Tanks ) : [32] : [512] : [4096] NPCs (Common Infected, Witches ) : [16] : [2048] Physics Objects (not including physics debris) : [1024]
|
Inputs
|
Outputs
Bug:Spamming crouch jumps in a trigger can randomly fire OnStartTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
Warning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning:
OnEndTouch can fire before OnStartTouch under certain circumstances where both are fired on the same tick and each have the same delay. Fix:Add a slight delay to OnEndTouch .Bug:Spamming crouch jump in a trigger can randomly fire OnEndTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
|
See also
func_nav_prefer
, which influences bots to prefer this region by decreasing the pathfinding cost within it.func_nav_avoid
, which influences bots to avoid this region by increasing the pathfinding cost within it.