script_nav_attribute_region

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default .
It should not be put directly in a map because func_nav_attribute_region already exists as a more accessible option.
class hierarchy
CScriptNavAttributeRegion
CFuncNavAttributeRegion
CBaseEntity

script_nav_attribute_region is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It's the func_nav_attribute_region brush entity but just retinkered for VScripts. Applies nav attributes to overlapping nav areas when it spawns in or nav is being generated, just like its brush entity version.

In Entity Group scripts by Valve (especially Holdout), point_nav_attribute_region is seen used in place of script_nav_attribute_region, but its only because this entity didn't exist before The Last Stand update, so it's not strange to use this entity.

When compiling Entity Groups, func_nav_attribute_region entities are converted to script_nav_attribute_region.

Note.pngNote:Attributes set will persists when a round ends!

Keyvalues

Bounding Box Extents (extent) <vector>
Controls each 'radius' of the bounding box. X is half the width, Y is half the height and Z is half the length.
Origin (origin) <vector>
Center of the bounding box specified by extent
Angles (angles) <vector>
Angles of the bounding box specified by extent

NavAttributeRegion:
Precise (precise) <choices> (only in Left 4 Dead 2)
Crouch (crouch) <choices> (only in Left 4 Dead 2)
Stairs (stairs) <choices> (only in Left 4 Dead 2)
Tank Only (tank_only) <choices> (only in Left 4 Dead 2)
Mob Only (mob_only) <choices> (only in Left 4 Dead 2)
If either of the above 5 are enabled, their respective nav attributes will also be applied.
  • 0 : Off
  • 1 : On
Remove Attributes (remove_attributes) <integer> (only in Left 4 Dead 2)
Remove attributes from nav areas instead of applying them.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Flags

Effects of these attributes are found at the List of L4D Series Nav Mesh Attributes page.

NavAttributeRegion:

  •  [2] : EMPTY
  •  [4] : STOP_SCAN !FGD
  •  [32] : BATTLESTATION
  •  [64] : FINALE
  •  [128] : PLAYER_START (Mission start)
  •  [256] : BATTLEFIELD
  •  [1024] : NOT_CLEARABLE
  •  [2048] : CHECKPOINT
  •  [4096] : OBSCURED !FGD (Left 4 Dead)
  •  [8192] : NO_MOBS
  •  [16384] : THREAT !FGD
  •  [32768] : RESCUE_VEHICLE !FGD (Left 4 Dead)
  •  [65536] : RESCUE_CLOSET !FGD (Left 4 Dead)
  •  [524288] : NOTHREAT (only in Left 4 Dead 2)
  •  [1048576] : LYINGDOWN (only in Left 4 Dead 2)
Note.pngNote:In Left 4 Dead 2, these values are also usable with the spawn attribute methods found in theTerrorNavAreaVScript class.


Inputs

ApplyNavAttributes
Reapply, or remove if the keyvalue was set, the nav attributes for nav meshes covered by its volume.

See also