Env global (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up, replaced: {{EntityTabs → {{tabs)
Line 1: Line 1:
{{EntityTabs|env_global|goldsrc=1|source=1|main=source}}
{{tabs|env_global|goldsrc=1|source=1|main=source}}
{{This is a|name=env_global|e0|engine=1}}  It can set a global state which persists between maps. It's useful for having events happen in one map after something have been activated in another.
{{This is a|name=env_global|e0|engine=1}}  It can set a global state which persists between maps. It's useful for having events happen in one map after something have been activated in another.



Revision as of 00:52, 19 January 2024

env_global is an e0 available in all Template:1 games.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

It can set a global state which persists between maps. It's useful for having events happen in one map after something have been activated in another.

Key Values

Global State:
Global State to Set ([todo internal name (i)]) <string>
The global state which this env_global will set. Can be anything and can be used by trigger_auto entities to fire a target after this env_global have been activated.
Trigger Mode ([todo internal name (i)]) <choices>
  • 0 : Off
  • 1 : On
  • 2 : Dead
  • 3 : Toggle
Initial State ([todo internal name (i)]) <choices>
  • 0 : Off
  • 1 : On
  • 2 : Dead

Flags

Set Initial State : [1]