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

func_guntarget

From Valve Developer Community
Revision as of 05:44, 14 July 2024 by Nescius (talk | contribs) (badly moved multipage)
Jump to navigation Jump to search
English (en)Translate (Translate)

func_guntarget is a brush entity available in all Source Source games.

C++ In code, it is represented by theCGunTargetclass, defined in theguntarget.cppfile.


Entity Description

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

Keyvalues

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.
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.

Inputs

Start
Start the target moving.
Stop
Stop the target from moving.
Toggle
Toggle the target between moving and stopped.
SetDamageFilter <targetnameRedirectInput/string>
Sets a filter for this entity for when it receives damage.
EnableDamageForces
Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
DisableDamageForces
Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place

Outputs

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