Func guntarget: Difference between revisions
Jump to navigation
Jump to search

(badly moved multipage) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | {{LanguageBar}} | ||
{{CD|CGunTarget|file1=guntarget.cpp}} | |||
{{tabs|Func guntarget|goldsrc=1|source=1|main=source}} | {{tabs|Func guntarget|goldsrc=1|source=1|main=source}} | ||
{{this is a|brush entity|name=func_guntarget}} | {{this is a|brush entity|name=func_guntarget}} | ||
==Entity Description== | ==Entity Description== | ||
Line 10: | Line 9: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | |||
{{KV|Speed (units per second)|intn=speed|integer|The speed at which the target moves along its path.}} | {{KV|Speed (units per second)|intn=speed|integer|The speed at which the target moves along its path.}} | ||
{{KV|First stop target|intn=target|target_destination|The name of the first path_track entity in the path that this target should follow.}} | {{KV|First stop target|intn=target|target_destination|The name of the first path_track entity in the path that this target should follow.}} | ||
{{KV|Damage to Take|intn=health|integer|The amount of damage taken before this target is killed.}} | {{KV|Damage to Take|intn=health|integer|The amount of damage taken before this target is killed.}} | ||
== Inputs == | == Inputs == | ||
Line 20: | Line 18: | ||
{{IO|Stop|Stop the target from moving.}} | {{IO|Stop|Stop the target from moving.}} | ||
{{IO|Toggle|Toggle the target between moving and stopped.}} | {{IO|Toggle|Toggle the target between moving and stopped.}} | ||
== Outputs == | == Outputs == | ||
{{IO|OnDeath|Fires when the target is killed. {{activator|killer}}}} | {{IO|OnDeath|Fires when the target is killed. {{activator|killer}}}} | ||
Revision as of 05:46, 14 July 2024


![]() |
---|
CGunTarget |
![]() |
func_guntarget
is a brush entity available in all Source games.
Entity Description
It is a moving target that moves along a path of path_tracks. It can be shot and killed. Template:Brushmodel
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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)