This article's documentation is for anything that uses the Source engine. Click here for more information.

Logic navigation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|title=logic_navigation}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{CD|CLogicNavigation|file1=logic_navigation.cpp}}
{{CD|CLogicNavigation|file1=logic_navigation.cpp}}
{{this is a|e0|name=logic_navigation}} It is used to set navigation properties on other entities. Useful to make NPCs ignore physics props in their way that they can easily push.
{{entity|logic_navigation|type=e0}} It is used to set navigation properties on other entities. Useful to make NPCs ignore physics props in their way that they can easily push.


{{Note|Due to some irregularities in the base [[FGD]], this entity's keys are best used with [[Hammer_Object_Properties_Dialog#SmartEdit|SmartEdit]] off.}}
{{Note|Due to some irregularities in the base [[FGD]], this entity's keys are best used with [[Hammer_Object_Properties_Dialog#SmartEdit|SmartEdit]] off.}}

Revision as of 11:45, 4 January 2024

English (en)Translate (Translate)
C++ Class hierarchy
CLogicNavigation
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logic_navigation.cpp

logic_navigation is an e0 available in all Source Source games. It is used to set navigation properties on other entities. Useful to make NPCs ignore physics props in their way that they can easily push.

Note.pngNote:Due to some irregularities in the base FGD, this entity's keys are best used with SmartEdit off.

Keyvalues

Navigation Entity (target) <targetname>
Name of the entity to set navigation properties on.
Nav Property (navprop) <choices>
  • Ignore : NPCs Ignore this when navigating (they'll bump into it)
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

Flags

Start On : [1]

Inputs

TurnOn
Turn on. The Navigation Entity will have its navigation properties set.
TurnOff
Turn off. The Navigation Entity will have its navigation properties returned to the default settings.
Toggle
Toggle on/off.