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

Func guntarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
mNo edit summary
Line 1: Line 1:
{{this is a|e2|name=func_guntarget}}
{{this is a|e2|name=func_guntarget}}
{{code class|CGunTarget|guntarget.cpp}}
{{code class|CGunTarget|guntarget.cpp}}
 
{{MultiPage| title = func_guntarget }}
==Entity Description==
It is a moving target that moves along a path of {{ent|path_track}}s. It can be shot and killed.
{{brushmodel}}
 
== Keyvalues ==
{{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|Damage to Take|intn=health|integer|The amount of damage taken before this target is killed.}}
{{KV BaseEntity|brush=1}}
{{KV visiblebrush}}
 
== Inputs ==
{{IO|Start|Start the target moving.}}
{{IO|Stop|Stop the target from moving.}}
{{IO|Toggle|Toggle the target between moving and stopped.}}
{{I visiblebrush|portal2=1}}
 
== Outputs ==
{{IO|OnDeath|Fires when the target is killed. {{activator|killer}}}}
{{O Targetname}}

Revision as of 12:13, 18 April 2024

func_guntarget is an e2 available in all Source Source games.

C++ In code, it is represented by theCGunTargetclass, defined in theguntarget.cppfile.
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.