You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date.
Click here to see the current revision of this page.
This article was converted from a previous version of TWHL and may need to be reviewed
The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
Some information may be out of date
After the article is re-formatted and updated, remove this notice and the Review Required category.
Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
This entity stores 'global' variables across levels, so you can set a state in one level, and retrieve it in another.
Name (targetname) - Property used to identify entities.
Global State to Set (globalstate) - The name of the global variable you want to set. This name must be the Global State to Read value of entities such as the multisource, that read the global state.
Trigger Mode (triggermode) - Values: 0 = Off, 1 = On, 2 = Dead, 3 = Toggle. This is the state that the global variable is set to when the env_global is triggered. If it is set to Toggle, the state will be toggled between on and off whenever the env_global is triggered, starting on the Initial State value.
Initial State (initialstate) - This is the state the global variable is given when the level loads, if the Set Initial State flag is enabled. Also, it is the first state given to the variable if Trigger Mode is toggle. Values: 0 = Off, 1 = On, 2 = Dead.