Func guntarget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (categorise - brushmodel entities)
m (Robot: fixing template case.)
Line 23: Line 23:
==Inputs==
==Inputs==
*{{i targetname}}
*{{i targetname}}
*{{i parentname}}
*{{I Parentname}}
*'''Start'''
*'''Start'''
:Start the target moving.
:Start the target moving.

Revision as of 19:31, 19 January 2009

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:Brushmodel 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

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • Start
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)