Info node link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Formatting)
No edit summary
Line 6: Line 6:
A dynamic connection between two navigation nodes. You specify the node IDs of the start and end nodes, and then you can use entity I/O 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).
A dynamic connection between two navigation nodes. You specify the node IDs of the start and end nodes, and then you can use entity I/O 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).


==Entity Values==
==Keyvalues==
===Keys===


* '''Name''' ''targetname <target_source>'' 
* [[Targetname]]
: The name that other entities refer to this entity by.
* '''StartNode'''  
: <node_dest> The node ID of one end of the node connection.


* '''Start node ID''' ''StartNode <node_dest>''
* '''EndNode'''
: The node ID of one end of the node connection.
: <node_dest> The node ID of one end of the node connection.


* '''End node ID''' ''EndNode <node_dest>''
* '''initialstate'''
: The node ID of one end of the node connection.
: <choices>
:*Off
:*On
* '''AllowUse'''
: <string> Entity or class to allow passage even when node is off


* '''Initial State''' ''initialstate <choices>''
==Flags==
* '''Allow Pass When Off''' ''AllowUse <string>''
*Force human connect
: Entity or class to allow passage even when node is off
*Force small_centered connect
*Force wide_human connect
*Force tiny connect
*Force wide_short connect
*Force medium connect
*Force tiny_centered connect
*Force large connect
*Force large_centered connect


* '''spawnflags''' ''spawnflags <flags>''
==Inputs==


===Inputs===
* [[Targetname]]
 
* '''Kill'''
: Removes this entity from the world.
 
* '''KillHierarchy''' 
: Removes this entity and all its children from the world.
 
* '''AddOutput''' ''<string> <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>''
: Adds an entity I/O connection to this entity. Very dangerous, use with care
 
* '''FireUser1'''
: Causes this entity's OnUser1 output to be fired.
 
* '''FireUser2'''
: Causes this entity's OnUser2 output to be fired.
 
* '''FireUser3'''
: Causes this entity's OnUser3 output to be fired.
 
* '''FireUser4'''
: Causes this entity's OnUser4 output to be fired.


* '''TurnOn'''
* '''TurnOn'''
Line 53: Line 43:
: Turn the link off.
: Turn the link off.


===Outputs===
==Outputs==
 
* '''OnUser1'''
: Fired in response to FireUser1 input.
 
* '''OnUser2'''
: Fired in response to FireUser2 input.
 
* '''OnUser3'''
: Fired in response to FireUser3 input.


* '''OnUser4'''
* [[Targetname]]
: Fired in response to FireUser4 input.


[[category:Entities]]
[[category:Entities]]
[[category:AI]]
[[category:AI]]

Revision as of 20:23, 9 July 2005

Template:Wrongtitle

Entity Description

Entity Name: info_node_link

A dynamic connection between two navigation nodes. You specify the node IDs of the start and end nodes, and then you can use entity I/O 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

<node_dest> The node ID of one end of the node connection.
  • EndNode
<node_dest> The node ID of one end of the node connection.
  • initialstate
<choices>
  • Off
  • On
  • AllowUse
<string> Entity or class to allow passage even when node is off

Flags

  • Force human connect
  • Force small_centered connect
  • Force wide_human connect
  • Force tiny connect
  • Force wide_short connect
  • Force medium connect
  • Force tiny_centered connect
  • Force large connect
  • Force large_centered connect

Inputs

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

Outputs