Use (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{TabsBar|main=gs|base=Use}} {{stub}}{{cleanup}} The main way entities in {{GoldSrc}} communicate. When one entity utilizes the target keyvalue to target other entity it calls the targetted entity's Use function. Analogic to sending Use input in source. Players can also use entities. == See also == * [https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/subs.cpp#L189-L210 FireTargets function]")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TabsBar|main=gs|base=Use}}
{{TabsBar|main=gs|base=Use}}
{{stub}}{{cleanup}}
{{stub}}{{draft}}{{cleanup}}
The main way entities in {{GoldSrc}} communicate. When one entity utilizes the target keyvalue to target other entity it calls the targetted entity's Use function. Analogic to sending Use input in source.
The main way entities in {{GoldSrc}} communicate. When one entity utilizes the target keyvalue to target some other entity (for example {{goldent|trigger_once}} targetting {{goldent|env_sprite}} to turn it on/off) it calls the targetted entity's Use function. Analogous to sending Use input in source. Unlike Source, {{goldent|trigger_relay}} can explicitly set a USE_TYPE.
 
Players can also use entities.
Players can also use entities.


== See also ==
== See also ==
* [https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/subs.cpp#L189-L210 FireTargets function]
* [https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/subs.cpp#L177-L210 SUB_UseTargets and FireTargets functions]
* [[ObjectCaps (GoldSrc)]]

Latest revision as of 07:55, 29 May 2025

Stub

This article or section is a stub. You can help by expanding it.

Icon-under construction-blue.png
This is a draft page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

The main way entities in GoldSrc communicate. When one entity utilizes the target keyvalue to target some other entity (for example trigger_once targetting env_sprite to turn it on/off) it calls the targetted entity's Use function. Analogous to sending Use input in source. Unlike Source, trigger_relay can explicitly set a USE_TYPE.

Players can also use entities.

See also