Info node link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table))
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=info_node_link}}
[[File:link.png|left|link=]]
{{base_point}}


== Entity description ==
{{base point|info_node_link}} It is a dynamic connection between two navigation nodes.  
[[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).  
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).  
{{clr}}
{{clr}}
* 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 through a volume.


== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV|Start node ID|node_dest|The node ID of one end of the node connection.}}
* '''StartNode'''
{{KV|End node ID|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|Initial State|choices}}
* '''EndNode'''
:* 0 : Off
: <node_dest> The node ID of one end of the node connection.
:* 1 : On
* '''initialstate'''
{{KV|Type of Connection|choices}}
: {{boolean}}
:* 1 : Ground
* '''AllowUse'''
:* 2 : Jump
: <target_name_or_class> An entity or a class to let through even when the node is off.
:* 4 : Fly
* '''{{EP1 add|linktype}}'''
:* 8 : Climb
: <choices> Type of Connection
{{KV|Allow Pass When Off|string|Entity or class to allow passage even when node is off}}
:{| class=standard-table
{{KV|Invert exclusion rules|boolean|Allowed entity is the only entity NOT allowed when this is set to 'yes'}}
! Literal Value || Description
{{KV Targetname}}
|-
| 1 || Ground
|-
| 2 || Jump
|-
| 4 || Fly
|-
| 8 || Climb
|}


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


== Inputs ==
== Inputs ==
* {{I Targetname}}
{{IO|TurnOn|Turn the link on.}}
* '''TurnOn'''
{{IO|TurnOff|Turn the link off.}}
: Turn the link on.
{{I Targetname}}
* '''TurnOff'''
: Turn the link off.


== Outputs ==
== Outputs ==
* {{O Targetname}}
{{O Targetname}}
 
== 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 through a volume.


[[Category:AI]]
[[Category:AI]]

Revision as of 08:54, 26 July 2011

Link.png

Template:Base point It is 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).

Keyvalues

Start node ID ([todo internal name (i)]) <node_dest>
The node ID of one end of the node connection.
End node ID ([todo internal name (i)]) <node_dest>
The node ID of one end of the node connection.
Initial State ([todo internal name (i)]) <choices>
  • 0 : Off
  • 1 : On
Type of Connection ([todo internal name (i)]) <choices>
  • 1 : Ground
  • 2 : Jump
  • 4 : Fly
  • 8 : Climb
Allow Pass When Off ([todo internal name (i)]) <string>
Entity or class to allow passage even when node is off
Invert exclusion rules ([todo internal name (i)]) <boolean>
Allowed entity is the only entity NOT allowed when this is set to 'yes'
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

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

Inputs

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


Outputs

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 through a volume.