Info player ping detector: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{portal2 point|info_player_ping_detector}} {{stub}} Detects when the player uses the ping tool on a specific object.')
 
(Updated with data from the official portal2.fgd)
Line 1: Line 1:
{{portal2 point|info_player_ping_detector}}
{{portal2 point|info_player_ping_detector}}
{{stub}}
 
Detects when the player uses the ping tool on a specific object.
==Entity description==
Player Ping Detector. Triggered when the player uses the ping tool on a specific object.
 
==Keyvalues==
{{KV Targetname}}
{{KV|Team to Observe|choices|Which team's pings to look at.}}
:* 1 : Both
:* 2 : Orange
:* 3 : Blue
{{KV|Default State|choices|Is this entity enabled by default or not?}}
:* 0 : Disabled
:* 1 : Enabled
 
==Inputs==
{{I Targetname}}
{{IO|Enable|Starts listening for pings and will fire outputs when found.}}
{{IO|Disable|Disable this entity from listening for pings.}}
{{IO|Toggle|Toggle from Enabled to Disabled and vice versa.}}
 
==Outputs==
{{O Targetname}}
{{IO|OnPingDetected|Fired when a ping is detected.}}

Revision as of 01:21, 11 May 2011

Template:Portal2 point

Entity description

Player Ping Detector. Triggered when the player uses the ping tool on a specific object.

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

Team to Observe ([todo internal name (i)]) <choices>
Which team's pings to look at.
  • 1 : Both
  • 2 : Orange
  • 3 : Blue
Default State ([todo internal name (i)]) <choices>
Is this entity enabled by default or not?
  • 0 : Disabled
  • 1 : Enabled

Inputs

Enable
Starts listening for pings and will fire outputs when found.
Disable
Disable this entity from listening for pings.
Toggle
Toggle from Enabled to Disabled and vice versa.

Outputs

OnPingDetected
Fired when a ping is detected.