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

firetarget

From Valve Developer Community
Revision as of 17:58, 12 May 2025 by Nescius (talk | contribs) (Created page with "{{This is a|name=firetarget|console command}} This command calls an entity's Use function with use type <code>USE_TOGGLE</code>. It represents the way GoldSrc entities communicate. === Syntax === Syntax: <code>firetarget <targetname or classname></code> Not providing an argument is equivalent to !picker. <code>!activator / !caller / !self</code> target the player issuing the command. === Examples === <code>firetarget env_sprite</code> - toggles env_sprites...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

firetarget is a console command available in all Source Source games. This command calls an entity's Use function with use type USE_TOGGLE. It represents the way GoldSrc entities communicate.

Syntax

Syntax: firetarget <targetname or classname>

Not providing an argument is equivalent to !picker. !activator / !caller / !self target the player issuing the command.


Examples

firetarget env_sprite - toggles env_sprites on/off as they have left-over use function which is officially still used in certain Half-Life: Source Half-Life: Source maps and targetted by multi_manager.

firetarget button - assuming button is name of a func_button this command will press it

It prints messages to console about what is being fired if at least developer 2 is set.