Talk:Env global: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
:::What you could do is use the counter function and add one every time you pick one up. [[User:MLSTRM|MLSTRM]] 16:58, 23 March 2010 (UTC)
:::What you could do is use the counter function and add one every time you pick one up. [[User:MLSTRM|MLSTRM]] 16:58, 23 March 2010 (UTC)


==Ohai===
==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! --[[User:Mega Sean 45|Mega Sean 45]] 20:08, 9 September 2011 (PDT)
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! --[[User:Mega Sean 45|Mega Sean 45]] 20:08, 9 September 2011 (PDT)
: Place two, use TurnOn/TurnOff.

Revision as of 02:27, 10 September 2011

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.