Infra corruption target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (Substituted IO templates)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[File:Infra corruption target.png]]
[[File:Infra corruption target.png]]
{{this is a|e0|game=infra|name=infra_corruption_target}}
{{this is a|point entity|game=INFRA|name=infra_corruption_target}}


==  Entity Description ==
==  Entity Description ==
Line 15: Line 15:


== Inputs ==
== Inputs ==
{{IO|Trigger|Marks this corruption target as 'solved'. Doesn't do anything if it's disabled or if it has been previously triggered.}}
{{I|Trigger|Marks this corruption target as 'solved'. Doesn't do anything if it's disabled or if it has been previously triggered.}}
{{I Targetname}}
{{I Targetname}}
{{I EnableDisable}}
{{I EnableDisable}}


== Outputs ==
== Outputs ==
{{IO|OnTriggered|Fired when this is triggered.}}
{{O|OnTriggered|Fired when this is triggered.}}
{{O Targetname}}
{{O Targetname}}

Latest revision as of 07:54, 21 April 2025

Infra corruption target.png infra_corruption_target is a point entity available in INFRA INFRA.

Entity Description

It creates a corruption target which can be triggered. Typically intended to be used with infra_document to create a readable or photographable corruption piece. Plays a satisfying sound when triggered.

Keyvalues

Triggered by Photograph ([todo internal name (i)]) <boolean>
Can this corruption target also be triggered by taking a photo of it?
Needs Player Nearby ([todo internal name (i)]) <boolean>
Can this corruption target only be triggered if the player is nearby? Doesn't affect photographing, only the Trigger input.
Maximum Range ([todo internal name (i)]) <float>
A picture of this target is only considered successful if the player is within this range of the entity. Set to zero or less for infinite range.
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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

Trigger
Marks this corruption target as 'solved'. Doesn't do anything if it's disabled or if it has been previously triggered.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnTriggered
Fired when this is triggered.