Func nav blocker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{L4d brush|func_nav_blocker}}<br>
{{l4d series brush|func_nav_blocker}} It is a brush entity that can block [[NAV|nav]] areas touching its AABB used to restrict NPCs from crossing over nav areas.
{{L4d2 brush|func_nav_blocker}}<br><br>It blocks [[NAV]] areas touching its volume, preventing NPCs from crossing them.
{{note|The entity will NOT start to block automatically: it must first be activated with the <code>BlockNav</code> input.}}
 
It will NOT block automatically: it must first be activated with the <code>BlockNav</code> input.


==Keyvalues==
==Keyvalues==
 
{{KV Targetname}}
; Team to block <code><choices></code>
*;Team(s) to block <code><choices></code>
: For obvious reasons, only AI infected/survivors are affected!
:Team(s) this entity should block:
:* Everyone
:* Everyone
:* Survivors
:* Survivors
:* Infected
:* Infected
*;Affects Flow? <code><choices></code>
:Does this func_nav_blocker block flow in the level? Only func_nav_blockers with this enabled will cause flow recomputation on blocking/unblocking.
{{KV EnableDisable}}
{{KV EnableDisable}}
{{warning|Enabled/disabled state does ''not'' block or unblock NAV areas. Use <code>BlockNav</code>/<code>UnblockNav</code>}}
{{warning|Enabled/disabled state does ''not'' block or unblock NAV areas. Use <code>BlockNav</code>/<code>UnblockNav</code>}}
{{KV Targetname}}
 


==Inputs==
==Inputs==
 
{{I Targetname}}
; <code>BlockNav <[[string]]></code>
*;<code>BlockNav</code>
: Starts blocking nav areas. Takes an optional string argument of the team to block.
:Starts blocking nav areas. Takes an optional string argument of the team to block.
; <code>UnblockNav</code>
*;<code>UnblockNav</code>
: Stops blocking nav areas.
:Stops blocking nav areas.
{{I EnableDisable}}
{{I EnableDisable}}
{{warning|Enabled/disabled state does ''not'' block or unblock NAV areas.}}
{{warning|Enabled/disabled state does ''not'' block or unblock NAV areas.}}
{{I Targetname}}


==Outputs==
==Outputs==
{{O Targetname}}


{{O Targetname}}
==See also==
==External links==

Revision as of 18:37, 6 March 2011

Template:L4d series brush It is a brush entity that can block nav areas touching its AABB used to restrict NPCs from crossing over nav areas.

Note.pngNote:The entity will NOT start to block automatically: it must first be activated with the BlockNav input.

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

  • Team(s) to block <choices>
Team(s) this entity should block:
  • Everyone
  • Survivors
  • Infected
  • Affects Flow? <choices>
Does this func_nav_blocker block flow in the level? Only func_nav_blockers with this enabled will cause flow recomputation on blocking/unblocking.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Warning.pngWarning:Enabled/disabled state does not block or unblock NAV areas. Use BlockNav/UnblockNav


Inputs

  • BlockNav
Starts blocking nav areas. Takes an optional string argument of the team to block.
  • UnblockNav
Stops blocking nav areas.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Warning.pngWarning:Enabled/disabled state does not block or unblock NAV areas.

Outputs

See also

External links