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

Info target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added that the "Always transmit to client" spawnflag is also available in Garry's Mod.)
 
(28 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_target}}
{{LanguageBar}}
{{base_point}}
{{TabsBar|main=gs|base=info_target}}
{{Preserved entity}}
{{This is a|point entity|name=info_target|sprite=1}}


== Entity description ==
{{CD|CInfoTarget|base=CPointEntity|file1=beam_shared.cpp}}
[[Image:{{PAGENAME}}.png|left]]An '''info_target''' can be used by many different entities, and is a great generic target for any entity that needs to point, shoot, look at, or walk to a specific target.  
It can be used by many different entities, and is a great generic target for any entity that needs to point, shoot, look at, or walk to a specific target.  


The info_target entity is primarily used for a target for other entities. An info_target is similar to an [[info_null]]. An info_null is preferable to use as a point at target for lights, because an info_null is removed on map spawn, whereas an info_target remains.{{clr}}
It is primarily used for a target for other entities, similar to an {{ent|info_null}}. An info_null is preferable to use as a point at target for [[light_spot|spotlights]], because an info_null is removed on map spawn, whereas an info_target remains. This entity can be placed with the [[Commentary Editor]] for changing the players view angles & position during a commentary.


== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV Parentname with warning}}
* {{KV Angles}}


== Inputs ==
== Flags ==
* {{I Targetname}}
{{fl|1|Transmit to client (respect PVS)}}
* '''DispatchEffect <string>'''
{{fl|2|Always transmit to client (ignore PVS)|since={{L4D2}}|also=GMOD}}
: Dispatch an effect from this point


== Outputs ==
== See Also ==
* {{O Targetname}}
* {{ent|info_particle_target}}
* {{ent|info_target_instructor_hint}}

Latest revision as of 06:19, 4 October 2025

English (en)Slovenčina (sk)中文 (zh)Translate (Translate)
Recycle-warning.png
This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadPortal 2Counter-Strike: Global Offensive
If the game has round restart mechanics this entity may not behave as expected.
Info target.png

info_target is a point entity available in all Source Source games.

C++ Class hierarchy
CInfoTarget
CPointEntity
CBaseEntity
C++ beam_shared.cpp

It can be used by many different entities, and is a great generic target for any entity that needs to point, shoot, look at, or walk to a specific target.

It is primarily used for a target for other entities, similar to an info_null. An info_null is preferable to use as a point at target for spotlights, because an info_null is removed on map spawn, whereas an info_target remains. This entity can be placed with the Commentary Editor for changing the players view angles & position during a commentary.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities

Flags

Transmit to client (respect PVS) : [1]
Always transmit to client (ignore PVS) : [2] (in all games since Left 4 Dead 2) (also in Garry's Mod)

See Also