infra_corruption_target

From Valve Developer Community
Jump to: navigation, search

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>
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) <angle>
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.