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

Info node link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎Inputs: Substituted IO templates)
 
(19 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_node_link}}
{{LanguageBar}}
{{base_point}}[[Category:AI]]
{{CD|CAI_DynamicLink|base=CServerOnlyEntity|file1=1}}
 
{{this is a|point entity|name=info_node_link|except=Left 4 Dead series}} It is a manually defined, dynamic connection between two navigation nodes. This could be used to create or destroy a connection in the [[nodegraph]] because of some event in your map (a bridge being created/destroyed, etc).  
==Entity Description==
__NOTOC__
[[Image:link.png|left]]A dynamic connection between two navigation nodes.
 
You specify the node IDs of the start and end nodes, and then you can use entity [[Inputs and Outputs]] to turn on and off the connection. This could be used to create or destroy a connection in the [[nodegraph]] because of some event in your map (a bridge being created/destroyed, etc).  
 
* See also : [[info_node_link_controller]] which controls all connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections through a volume.
 
{{clr}}
==Keyvalues==
==Keyvalues==
* {{kv targetname}}
{{KV Targetname}}
* '''StartNode'''
{{KV|Start node ID|intn=StartNode|node_dest|The node ID of one end of the node connection.}}
: <node_dest> The node ID of one end of the node connection.
{{KV|End node ID|intn=EndNode|node_dest|The node ID of one end of the node connection.}}
* '''EndNode'''
{{KV|Initial State|intn=initialstate|choices|Makes this connection is available the moment the map loads. If there is something blocking the NPC's path while this is on, the NPC may appear to walk straight into that object/hole.}}
: <node_dest> The node ID of one end of the node connection.
:* 0 : Off
* '''initialstate'''
:* 1 : On
: {{boolean}}
{{KV|Type of Connection|intn=linktype|choices|How NPCs can use this node. Not all NPCs can do all types.}}
* '''AllowUse'''
:* 1 : Ground
: <target_name_or_class> Entity or class to allow passage even when node is off
:* 2 : Jump
* '''{{ep1 add|linktype}}'''
:* 4 : Fly
: <choices> Type of Connection
:* 8 : Climb
:{|
{{KV|Allow Pass When Off|intn=AllowUse|string|Entity or class to allow passage even when node is off}}
! Literal Value || Description
{{KV|Invert exclusion rules|intn=InvertAllow|boolean|Allowed entity is the only entity NOT allowed when this is set to 'yes'{{bug|Non-functional. Use {{ent|info_node_link_controller}} instead if this keyvalue is needed.}}
|-
| 1 || Ground
|-
| 2 || Jump
|-
| 4 || Fly
|-
| 8 || Climb
|}


==Flags==
==Flags==
* 1 : [[NPC_Hull#human_hull|Force human connect]]
''See: [[NPC Hull]].''
* 2 : [[NPC_Hull#small_centered_hull|Force small_centered connect]]
{{fl|1|Force human connect}}
* 4 : [[NPC_Hull#wide_human_hull|Force wide_human connect]]
{{fl|2|Force small_centered connect}}
* 8 : [[NPC_Hull#tiny_hull|Force tiny connect]]
{{fl|4|Force wide_human connect}}
* 16 : [[NPC_Hull#wide_short_hull|Force wide_short connect]]
{{fl|8|Force tiny connect}}
* 32 : [[NPC_Hull#medium_hull|Force medium permission]]
{{fl|16|Force wide_short connect}}
* 64 : [[NPC_Hull#tiny_centered_hull|Force tiny_centered connect]]
{{fl|32|Force medium connect}}
* 128 : [[NPC_Hull#large_hull|Force large connect]]
{{fl|64|Force tiny_centered connect}}
* 256 : [[NPC_Hull#large_centered_hull|Force large_centered connect]]
{{fl|128|Force large connect}}
{{fl|256|Force large_centered connect}}
{{fl|512|Force medium_tall connect}}


==Inputs==
==Inputs==
* {{i targetname}}
{{I|TurnOn|Turn the link on.}}
* '''TurnOn'''
{{I|TurnOff|Turn the link off.}}
: Turn the link on.
 
* '''TurnOff'''
==See also==
: Turn the link off.
* {{ent|info_node_link_controller}} - manages ''all'' connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections.


==Outputs==
[[Category:AI]]
* {{o targetname}}
[[Category:Node entities]]

Latest revision as of 11:00, 21 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CAI_DynamicLink
CServerOnlyEntity
CBaseEntity
C++ ai_dynamiclink.cpp

info_node_link is a point entity available in all Source Source games except Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is a manually defined, dynamic connection between two navigation nodes. This could be used to create or destroy a connection in the nodegraph because of some event in your map (a bridge being created/destroyed, etc).

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

Start node ID (StartNode) <node_dest>
The node ID of one end of the node connection.
End node ID (EndNode) <node_dest>
The node ID of one end of the node connection.
Initial State (initialstate) <choices>
Makes this connection is available the moment the map loads. If there is something blocking the NPC's path while this is on, the NPC may appear to walk straight into that object/hole.
  • 0 : Off
  • 1 : On
Type of Connection (linktype) <choices>
How NPCs can use this node. Not all NPCs can do all types.
  • 1 : Ground
  • 2 : Jump
  • 4 : Fly
  • 8 : Climb
Allow Pass When Off (AllowUse) <string>
Entity or class to allow passage even when node is off

{{KV|Invert exclusion rules|intn=InvertAllow|boolean|Allowed entity is the only entity NOT allowed when this is set to 'yes'

Icon-Bug.pngBug:Non-functional. Use info_node_link_controller instead if this keyvalue is needed.  [todo tested in ?]

Flags

See: NPC Hull.

Force human connect : [1]
Force small_centered connect : [2]
Force wide_human connect : [4]
Force tiny connect : [8]
Force wide_short connect : [16]
Force medium connect : [32]
Force tiny_centered connect : [64]
Force large connect : [128]
Force large_centered connect : [256]
Force medium_tall connect : [512]

Inputs

TurnOn
Turn the link on.
TurnOff
Turn the link off.

See also

  • info_node_link_controller - manages all connections between nodes that intersect the controller's volume. This allows for mass enabling/disabling of all node connections.