Talk:Env global: Difference between revisions
(→Global State to Set: new section) |
(→Reset Globals: new section) |
||
Line 19: | Line 19: | ||
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? | 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? | ||
--[[User:Mr.p.kiwi|<span style="color:#307D7E">'''Mr. P. Kiwi'''</span>]] <sup>([[User talk:Mr.p.kiwi|Talk]] | [[Special:Contributions/Mr.p.kiwi|Contributions]])</sup> 21:33, 19 December 2011 (PST) | --[[User:Mr.p.kiwi|<span style="color:#307D7E">'''Mr. P. Kiwi'''</span>]] <sup>([[User talk:Mr.p.kiwi|Talk]] | [[Special:Contributions/Mr.p.kiwi|Contributions]])</sup> 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. |
Revision as of 02:38, 24 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_auto—ts2do 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.