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

Note:
m (→Keyvalues: bug correction) |
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified) |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{this is a|brush entity|game=Team Fortress 2|name=func_nav_prerequisite}} It is also available in {{bms|4}}. It is a trigger volume that requires bots to do perform a task before they can move through it. | |||
{{note|<code>func_nav_prerequisite</code> 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. | |||
<source lang=js> | |||
RegisterScriptGameEventListener("round_start") | |||
SendGlobalGameEvent("round_start", {}) | |||
</source>}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Task|intn=task|choices|What must be done to move through this volume}} | |||
{{KV| | |||
:* 1 : Destroy Entity (Value = max range to attack from. -1 for no range restriction) | :* 1 : Destroy Entity (Value = max range to attack from. -1 for no range restriction) | ||
{{bug|In {{tf2}}, this task does not function.}} | :{{bug|hidetested=1|In {{tf2}}, this task does not function. {{ModernConfirm|Also for {{bms|4}} ?}}}} | ||
:* 2 : Move to Entity | :* 2 : Move to Entity | ||
:* 3 : Wait (Value = seconds to wait) | :* 3 : Wait (Value = seconds to wait) | ||
{{KV|Task Entity|target_destination|The subject entity of the Task}} | {{KV|Task Entity|intn=entity|target_destination|The subject entity of the Task.}} | ||
{{KV|Task Value|float|A Task-specific value}} | {{KV|Task Value|intn=value|float|A Task-specific value.}} | ||
{{KV TriggerOnce|base=1}} | |||
==Flags== | |||
{{Fl TriggerOnce}} | |||
==Inputs== | ==Inputs== | ||
{{I | {{I Trigger|base=1}} | ||
==Outputs== | ==Outputs== | ||
{{O | {{O Trigger}} | ||
==See | ==See also== | ||
* | *{{ent|func_nav_prefer}}, which influences bots to prefer this region by decreasing the pathfinding cost within it. | ||
* | *{{ent|func_nav_avoid}}, which influences bots to avoid this region by increasing the pathfinding cost within it. |
Latest revision as of 07:16, 20 May 2025


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.

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", {})
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
- 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 ?
- 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
|
Inputs
|
Outputs
|
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.