Point laser target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{portal2 point|point_laser_target}} It is a target for lasers to strike. The entity will fire outputs when struck and unstruck. Compare with [[prop_laser_catcher]].
{{portal2 point|point_laser_target}} It provides a target for [[Thermal Discouragement Beam|lasers]] to strike and will fire outputs when struck and unstruck. In this respect, it is functionally similar to both [[prop_laser_catcher]] and [[prop_laser_relay]] but does not provide its own model, sounds, or particle systems as they do. This makes it a useful entity for building custom laser catchers and relays.


== Keyvalues ==
== Keyvalues ==
{{KV|Terminal Point|boolean}}
{{KV|Terminal Point|boolean|If enabled, an [[env_portal_laser]] with auto-targetting enabled will attempt to automatically adjust its aim to snap to the point_laser_target when the beam is close by. This is ideal for custom catchers but not for relays.}}
{{KV Targetname}}
{{KV Targetname}}



Revision as of 00:01, 8 June 2012

Template:Portal2 point It provides a target for lasers to strike and will fire outputs when struck and unstruck. In this respect, it is functionally similar to both prop_laser_catcher and prop_laser_relay but does not provide its own model, sounds, or particle systems as they do. This makes it a useful entity for building custom laser catchers and relays.

Keyvalues

Terminal Point ([todo internal name (i)]) <boolean>
If enabled, an env_portal_laser with auto-targetting enabled will attempt to automatically adjust its aim to snap to the point_laser_target when the beam is close by. This is ideal for custom catchers but not for relays.
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

Inputs

Outputs

OnPowered
Fired when a laser hits the target.
OnUnpowered
Fired when a laser has stopped hitting the target.