Point prop use target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (→‎Outputs: Substituted IO templates)
Line 12: Line 12:


== Outputs ==
== Outputs ==
{{IO|OnUseStarted|Fired when a player starts using this target.}}
{{O|OnUseStarted|Fired when a player starts using this target.}}
{{IO|OnUseCancelled|Fired when a player use is cancelled.}}
{{O|OnUseCancelled|Fired when a player use is cancelled.}}
{{IO|OnUseFinished|Fired when a player use is complete.}}
{{O|OnUseFinished|Fired when a player use is complete.}}


== See also ==
== See also ==
* [[game_scavenge_progress_display]]
* [[game_scavenge_progress_display]]
* [[L4D2 Level Design/Scavenge Maps]]
* [[L4D2 Level Design/Scavenge Maps]]

Revision as of 23:04, 20 April 2025

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

Gas nozzle (nozzle) <targetname>
The name of the prop_dynamic gas nozzle for this use_target (scavenge mode).
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

Flags

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

Outputs

OnUseStarted
Fired when a player starts using this target.
OnUseCancelled
Fired when a player use is cancelled.
OnUseFinished
Fired when a player use is complete.

See also