So I want to make a house with some buttons that work on a generator.
So the generator gives the electric.
When the generator is off the button wont work.
Generator -> Button -> Light
But i dont know how to makes this.
Does anyone knows?
Whimp
First off...you don't need to sign your posts- we know who you are.
Second, try and use proper spelling and grammar.
How are you turning the genny on and off? If via a button, just set the lights button to "start locked", and use a logic_relay to lock and unlock it.
So:
func_button (generator)
Onpressed logic_relay (lights_enable) Trigger
Onpressed logic_relay (lights_disable) Trigger
logic_relay (lights_enable)- starts disabled (false)
ontrigger func_button (lights_button) unlock
ontrigger logic_relay (lights_enable) disable
ontrigger logic_relay (lights_disable) enable
logic_relay (lights_enable)- starts disabled (true)
ontrigger func_button (lights_button) lock
ontrigger logic_relay (lights_enable) enable
ontrigger logic_relay (lights_disable) disable
func_button (lights button)- starts locked
onpressed light (light) toggle
Do I need 2 logic relays?
Edit: Nevermind, got it working right now m8 thanks alot.
You do need two...because if you read how they are set up, one locks the button and the other unlocks it.
Sorry, you need to Log In to post a reply to this thread.