Env global (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed back link to List of HL1 entities (link exists in template))
(Formatting)
Line 1: Line 1:
{{GoldSource base point|env_global}}
{{GoldSource base point|env_global}} 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.


==Description==
==Key Values==
The '''env_global''' entity will set a global state which persists between map. It's useful for having events happen in one map after something have been activated in another.
{{ScrollBox|title=Global State|
 
{{KV|Global State to Set|string|The global state which this env_global will set. Can be anything and can be used by <code>[[Trigger_auto_(GoldSource_Engine){{!}}trigger_auto]]</code> entities to fire a target after this <code>env_global</code> have been activated.}}
==Key values==
{{KV|Trigger Mode|choices|
; Global State to Set <code><[[string]]></code>
: The global state which this env_global will set. Can be anything and can be used by [[Trigger_auto_(GoldSource_Engine)|trigger_auto]] entities to fire a target after this env_global have been activated.
; Trigger Mode <code><[[integer]]></code>
* 0 : Off
* 0 : Off
* 1 : On
* 1 : On
* 2 : Dead
* 2 : Dead
* 3 : Toggle
* 3 : Toggle}}
; Initial State
{{KV|Initial State|choices|
* 0 : Off
* 0 : Off
* 1 : On
* 1 : On
* 2 : Dead
* 2 : Dead}}
}}


==Spawnflags==
==Flags==
* 1 : Set Initial State
* 1 : Set Initial State


[[Category:Entities]]
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Half-Life Entities]]

Revision as of 03:42, 15 June 2018

Template:GoldSource base point 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

  • 1 : Set Initial State