This article's documentation is for anything that uses the Source engine. Click here for more information.

func_guntarget

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CGunTarget
CBaseToggle
CBaseEntity
guntarget.cpp

func_guntarget is a brush entity available in all Source Source games. It is a moving target that moves along a path of path_tracks. It can be shot and killed.

Keyvalues

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

Speed (units per second) (speed) <integer>
The speed at which the target moves along its path.
First stop target (target) <targetname>
The name of the first path_track entity in the path that this target should follow.
Damage to Take (health) <integer>
The amount of damage taken before this target is killed.

Inputs

Start
Start the target moving.
Stop
Stop the target from moving.
Toggle
Toggle the target between moving and stopped.

Outputs

OnDeath
Fires when the target is killed. (!activator is the killer)

See Also