Talk:Env global

From Valve Developer Community
Revision as of 20:32, 18 September 2018 by Pinsplash (talk | contribs) (Reset Globals: .)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


I'm not so sure about those updated descriptions for the global states. Those descriptions before were the ones straight from the FGD. Pinsplash (talk) 18:46, 18 September 2018 (UTC)

What's wrong with them? Do you have any suggestions on how to make them more informative? --Blixibon (talk) 19:08, 18 September 2018 (UTC)
Personally I thought they were fine. The information you added to them makes them inconsistent with how those settings appear in Hammer. It's probably not a real problem though. Pinsplash (talk) 19:57, 18 September 2018 (UTC)
Well, what does appear in Hammer are just brief names and some of them invoke complicated behavior which needed elaboration. I know I didn't elaborate as much as I could have, but I believe how much I touched on each subject is balanced well enough. I do understand your concerns since a new mapper may be confused by the fact the name in Hammer is different from the name on the wiki, and while I'm sure any potential confusion on that front would dissipate quickly, I will add another column with their names in Hammer if it makes you feel better. --Blixibon (talk) 20:17, 18 September 2018 (UTC)
That'd be good. Pinsplash (talk) 20:32, 18 September 2018 (UTC)