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

Warning:
Note:
(Add VScript code to update prerequisite at runtime) |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot under supervision.) |
||
Line 1: | Line 1: | ||
{{lang|func nav prerequisite}} | {{lang|func nav prerequisite}}{{this is a|e2|game=tf2|name=func_nav_prerequisite}} It is a trigger volume that requires bots to do perform a task before they can move through it. | ||
{{tf2 | |||
{{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. | {{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. |
Revision as of 07:25, 7 January 2024


func_nav_prerequisite
is an e2 available in Team Fortress 2.

- The {{{game}}} parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Team Fortress 2.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
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
- Task ([todo internal name (i)]) <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. [todo tested in ?]
- 2 : Move to Entity
- 3 : Wait (Value = seconds to wait)
- Task Entity ([todo internal name (i)]) <targetname>
- The subject entity of the Task.
|
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.