Talk:Env global: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Reset Globals: new section)
Line 26: Line 26:
Or what I should do?
Or what I should do?
Because in Garry's Mod I am using a lobby map and it saves the globals from the previous maps.
Because in Garry's Mod I am using a lobby map and it saves the globals from the previous maps.
Please list where you turnon, turnoff or remove the env_global in hl2 ep1 ep2 maps because it cause problem with the npcs.
Force them to stop working.

Revision as of 03:54, 29 February 2016

Is it possible to use your own global variables here (and if so, how do you check them)? I don't want to code things if I don't have to.

Also, do these globabl variables do anything just by being set, or are they only used for setting things in the map? - RodeoClown 23:27, 17 Apr 2006 (PDT)

You can make your own I believe.. you can utilize them in logic_autots2do 06:20, 18 Apr 2006 (PDT)
By variables, do you mean flags or do you mean values (integers/floats)? For instance, I'd like to be able to keep check of how many keys I've colleced from level to level. At first glance, this doesn't seem possible via env_global or logic_auto. --Andreasen 11:49, 11 Sep 2007 (PDT)
What you could do is use the counter function and add one every time you pick one up. MLSTRM 16:58, 23 March 2010 (UTC)

Ohai

Anybody know how this entity can just be triggered? Example: I'm doing a map that has the Gravity Gun and later on in the map I wanna switch it to a Super Gravity Gun. Anyone know how I can just trigger this entity going from a regular Gravity Gun to a Super Gravity Gun instead of one or the other for a map? Thanks! --Mega Sean 45 20:08, 9 September 2011 (PDT)

Place two, use TurnOn/TurnOff. --Artfunkel 02:27, 10 September 2011 (PDT)

Global State to Set

In newer games I saw that Valve used more of these 'Global State to Set' which are not on the list to preform all kinds of tasks, like disabling the ability for the co-op bots from Portal 2 to 'ping' or gesture. Anyone knows where the list of these new states is? --Mr. P. Kiwi (Talk | Contributions) 21:33, 19 December 2011 (PST)

Reset Globals

How do they work? Can I reset them in a map. Or what I should do? Because in Garry's Mod I am using a lobby map and it saves the globals from the previous maps. Please list where you turnon, turnoff or remove the env_global in hl2 ep1 ep2 maps because it cause problem with the npcs. Force them to stop working.