Info node link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Technical limitations and cleanup)
(More formatting and categorisation. Glad I did this - I needed an entity like this for my map!)
Line 1: Line 1:
{{wrongtitle|title=info_node_link}}
{{wrongtitle|title=info_node_link}}
{{cleanup}}


info_node_link
==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).
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).


KEYS
==Entity Values==
===Keys===


Name targetname <target_source> The name that other entities refer to this entity by.
* '''Name''' ''targetname <target_source>'' 
** The name that other entities refer to this entity by.
* '''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>''
* '''Allow Pass When Off''' ''AllowUse <string>''
** Entity or class to allow passage even when node is off
* '''spawnflags''' ''spawnflags <flags>''


Start node ID StartNode <node_dest> The node ID of one end of the node connection.
===Inputs===


End node ID EndNode <node_dest> The node ID of one end of the node connection.
* '''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'''
** Turn the link on.
* '''TurnOff'''
** Turn the link off.


Initial State initialstate <choices>
===Outputs===


Allow Pass When Off AllowUse <string> Entity or class to allow passage even when node is off
* '''OnUser1'''
** Fired in response to FireUser1 input.
* '''OnUser2'''
** Fired in response to FireUser2 input.
* '''OnUser3'''
** Fired in response to FireUser3 input.
* '''OnUser4'''
** Fired in response to FireUser4 input.


spawnflags spawnflags <flags>
[[category:Entities]]
 
[[category:AI]]
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. 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 Turn the link on.
 
TurnOff Turn the link off.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Revision as of 16:17, 6 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).

Entity Values

Keys

  • Name targetname <target_source>
    • The name that other entities refer to this entity by.
  • 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>
  • Allow Pass When Off AllowUse <string>
    • Entity or class to allow passage even when node is off
  • spawnflags spawnflags <flags>

Inputs

  • 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
    • Turn the link on.
  • TurnOff
    • Turn the link off.

Outputs

  • OnUser1
    • Fired in response to FireUser1 input.
  • OnUser2
    • Fired in response to FireUser2 input.
  • OnUser3
    • Fired in response to FireUser3 input.
  • OnUser4
    • Fired in response to FireUser4 input.