point_laser_target

From Valve Developer Community
Revision as of 09:02, 7 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search

point_laser_target is an e0 available in Portal 2 Portal 2.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{portal2}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Portal 2.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

Entity description

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.