Point prop use target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(add Inputs)
(added {{LanguageBar}})
 
Line 1: Line 1:
{{LanguageBar}}
{{CD|CPointPropUseTarget}}
{{CD|CPointPropUseTarget}}
{{This is a|point entity|name=point_prop_use_target|game=Left 4 Dead 2}} It is an use target for carried props. Triggers the prop's use behavior. This is the point entity that players approach and "fills the gas" or "drops off the cola" with. Currently only available for gas can and cola props.
{{This is a|point entity|name=point_prop_use_target|game=Left 4 Dead 2}} It is an use target for carried props. Triggers the prop's use behavior. This is the point entity that players approach and "fills the gas" or "drops off the cola" with. Currently only available for gas can and cola props.

Latest revision as of 07:15, 9 May 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CPointPropUseTarget
CBaseEntity

point_prop_use_target is a point entity available in Left 4 Dead 2 Left 4 Dead 2. It is an use target for carried props. Triggers the prop's use behavior. This is the point entity that players approach and "fills the gas" or "drops off the cola" with. Currently only available for gas can and cola props.


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

Gas nozzle (nozzle) <targetname>
The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).

Flags

Useable by Gas Can : [1]
Useable by Cola Bottles : [2]

Outputs

OnUseStarted
!activator = !caller = this entity
Fired when a player starts using this target.
OnUseCancelled
!activator = !caller = this entity
Fired when a player use is cancelled.
OnUseFinished
!activator = !caller = this entity
Fired when a player use is complete.

Inputs

Activate
Activate the use target.
Deactivate
Deactivate the use target.

See also