Func guntarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (doxygen)
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=func_guntarget}}
{{wrongtitle|title=func_guntarget}}
{{base_brush}}


==Entity Description==
==Entity Description==
This is a moving target that moves along a path of [[path_track]]s. It can be shot and killed.  
This is a moving target that moves along a path of [[path_track]]s. It can be shot and killed.  


==Availability==
{{in game|brush}} {{game-base}}
{{in code|class=class_c_gun_target.html CGunTarget|file=guntarget_8cpp-source.html guntarget.cpp}}
{{in code|class=class_c_gun_target.html CGunTarget|file=guntarget_8cpp-source.html guntarget.cpp}}


Line 36: Line 35:
*'''OnDeath'''
*'''OnDeath'''
:Fires when the target is killed. {{activator|killer}}
:Fires when the target is killed. {{activator|killer}}
[[Category:Entities]][[Category:Brush Entities]]

Revision as of 11:37, 12 April 2008

Template:Wrongtitle Template:Base brush

Entity Description

This is a moving target that moves along a path of path_tracks. It can be shot and killed.

Template:In code

Keyvalues

<integer> The speed at which the target moves along its path.
  • target
<target_destination> The name of the first path_track entity in the path that this target should follow.
  • health
<integer> The amount of damage taken before this target is killed.
  • _minlight
<string> The minimum level of ambient light that hits this brush.

Inputs

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

Outputs

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