Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 41 Guests
Online:

LATEST FORUM THREADS

»
Call of DutyŽ: WWII
CoD WW2 General
SOF2 Prefabs map
SoFII Mapping
coduo mapping tools
CoDUO Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Valve's Source
Category: HL2 Mapping
Half-Life 2 Single Player, Deathmath, Orange Box, etc. mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: 1 button, on and off light
explorer7
General Member
Since: Apr 24, 2008
Posts: 41
Last: Feb 7, 2010
[view latest posts]
Level 2
Category: HL2 Mapping
Posted: Thursday, Apr. 16, 2009 02:30 pm
Hey guys. I have 1 button and one light. I want to make it so when the button is pressed the light goes on, and when the button is pressed AGAIN the light goes off. I originally made 2 outputs, 1 for ON and one for OFF, but that confuses Hammer editor and it makes it so I can only turn the light on, but not off. Help.
Share |
Welshy
Preferred Member
Since: Feb 16, 2007
Posts: 1807
Last: Apr 15, 2018
[view latest posts]
Level 8
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: HL2 Mapping
Posted: Thursday, Apr. 16, 2009 03:10 pm
There are loads of ways to do this, Here's the one I know

Make whatever object (Normally a brush) you want to be the button and tie it to a func_button.

On the output tab click add then select OnPressed under output named

Next under target entities select your light entity (make sure you have given it a name)

Under via this output select toggle

Now go to the flags tab and tick toggle.

If you want it to be off when you start go to your light entity and under flags tick the start dark option. That should do it. Now when you run your map, you should press the button and the light comes on, When you press it again it should go off.
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
MODSonair is a weekly podcast bringing you the news from a modders perspective. Tune in every Sunday at 5pm GMT to listen LIVE.
Share |
explorer7
General Member
Since: Apr 24, 2008
Posts: 41
Last: Feb 7, 2010
[view latest posts]
Level 2
Category: HL2 Mapping
Posted: Thursday, Apr. 16, 2009 03:24 pm
Great it worked. Thanks!
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Valve's Source : HL2 Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»