Skip to main content

func_guntarget

func_guntarget icon
Brush entity

A func_guntarget moves along a path of path_corner entities, and players can shoot it down like a target on a shooting range. When it has taken its Damage to Take, it stops and fires its target.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

Triggering the entity starts it along its path from the next path_corner, with its full Damage to Take again. Once it is on its way, even while it waits at a path_corner, triggering it again or with the use type Off stops it, and the use type On does nothing. See Common keys.

Speedspeed

Sets how fast the target moves from one path_corner to the next, in units per second, and 0 means 100.

Default 100
First stop targettarget

Names the first path_corner, where the target stands when the map starts.

Fire when shot downmessage

Names the entities to trigger when the func_guntarget has taken all its Damage to Take and stops.

Damage to Takehealth

Sets how much damage the target takes before it stops, and with 0, players can't shoot it down.

Default 0

Flags​

1Start On

The target starts along its path 0.3 seconds after the map starts, without a trigger

Notes​

  • The target can only be hurt while it is on its way, so a target that has stopped takes no more damage
  • It uses the wait and the fire target of each path_corner, and the center of the brush moves to each one

See also​

Changes since 1.38​

  • A trigger stops a moving gun target. In SBO 1.38, as in Half-Life, the gun target never noted that it had started, so a second trigger started it again from its next path_corner, and Off did nothing