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

info_target

From Valve Developer Community
< Sk
Jump to: navigation, search
English (en)Slovenčina (sk)Translate (Translate)
Info target.png

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

Hierarchia tried
CInfoTarget
CPointEntity
CBaseEntity
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ď po spawnutí, zatiaľ čo info_target ostáva. Táto entita môže byť tiež umiestnená pomocou editora komentárov(en) pre zmenu uhlov a pozície hráčov počas komentáru vývojára.

Note.pngPoznámka: This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourcePortalTeam Fortress 2Left 4 DeadPortal 2Counter-Strike: Global Offensive.
  • 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

Name(en) (targetname) <string(en)>
Meno, ktoré iné entity použijú ak treba referovať na túto entitu.

Flags

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

Pozri aj