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

Sk/Info target: Difference between revisions

From Valve Developer Community
< Sk
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{wip}}{{translate}}
{{LanguageBar}}
{{LanguageBar}}
{{tabs|info_target|goldsrc=1|source=1|main=source}}
{{TabsBar|main=gs|base=info_target}}
{{this is a|point entity|name=info_target|sprite=1}}
{{this is a|point entity|name=info_target|sprite=1}}


{{CD|CInfoTarget|base=CPointEntity|file1=beam_shared.cpp}}
{{CD|CInfoTarget|base=CPointEntity|file1=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.  
Je použiteľná pre veľa rozličných entít, a je výborný všeobecný cieľ pre rôzne entity, ktoré maju mieritť, strieľať, pozerať na alebo kráčať na určenú pozíciu.


It is primarily used for a target for other entities, similar to an {{L|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. This entity can be placed with the {{L|Commentary Editor}} for changing the players view angles & position during a commentary.
Je to jej hlavné použitie, a je podobné ako {{ent|info_null}}. info_null je preferovaný na namierenie svetiel na určenú pozíciu, lebo info_null sa vymaže hneď ako sa objaví, zatiaľ čo info_target ostáva. Táto entita môže byť tiež umiestnená pomocou {{L|Commentary Editor|editora komentárov}} na zmenu uhlov a pozície hráčov počas komentáru vývojára.
{{preservedEnt|info_target}}
{{preservedEnt|info_target}}


Line 14: Line 13:


== Flags ==
== Flags ==
{{fl|1|Transmit to client (respect PVS)}}
{{fl|1|Transmit to client (respect PVS)|Doručuj klientovi (zohľadni PVS)}}
{{fl|2|Always transmit to client (ignore PVS)|since={{L4D2}}}}
{{fl|2|Always transmit to client (ignore PVS)|Vždy doručuj klientovi (ignoruj PVS)|since={{L4D2}}}}


== See Also ==
== Pozri aj ==
* {{ent|info_particle_target}}
* {{ent|info_particle_target}}
* {{ent|info_target_instructor_hint}}
* {{ent|info_target_instructor_hint}}

Revision as of 03:03, 16 September 2024

English (en)Slovenčina (sk)中文 (zh)Translate (Translate)
Info target.png

info_target je point entita(en) dostupná v každej hre, používajúcej Source Source.

C++ Hierarchia tried
CInfoTarget
CPointEntity
CBaseEntity
C++ beam_shared.cpp

Je použiteľná pre veľa rozličných entít, a je výborný všeobecný cieľ pre rôzne entity, ktoré maju mieritť, strieľať, pozerať na alebo kráčať na určenú pozíciu.

Je to jej hlavné použitie, a je podobné ako info_null. info_null je preferovaný na namierenie svetiel na určenú pozíciu, lebo info_null sa vymaže hneď ako sa objaví, zatiaľ čo info_target ostáva. Táto entita môže byť tiež umiestnená pomocou editora komentárov(en) na zmenu uhlov a pozície hráčov počas komentáru vývojára.

Icon-Important.pngDôležité: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:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Keyvalues

See also:  Generic Keyvalues, Inputs and Outputs available to all entities
Name(en) (targetname) <string(en)>
Meno, ktoré iné entity použijú ak treba referovať na túto entitu.

Flags

Transmit to client (respect PVS) : [1]
Doručuj klientovi (zohľadni PVS)
Always transmit to client (ignore PVS) : [2] (vo všetkých hrách od vydania Left 4 Dead 2)
Vždy doručuj klientovi (ignoruj PVS)

Pozri aj