Switching light on/off
11 replies



24.12.17 10:20:37 pm
How do I make lights switch on and off. I created a dark room and I want light to be switched inside with button but all light entity I place don't switch off when round starts to be switched on. I tried with start and delay trigger but with no effect
EDIT: I had placed wrong light entity without noticing I needed to place env_light which can be switch on and off with simple use trigger button
EDIT: I had placed wrong light entity without noticing I needed to place env_light which can be switch on and off with simple use trigger button

edited 1×, last 28.12.17 12:22:08 pm
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
So you basically want a blinking light?
If that's your cause, then first create trigger_start and your light entity.
Make your trigger_start trigger a delay which triggers the light and a second delay but we will get to that later. Also add at least 3 seconds to that delay.
Then create a second delay which triggers the first delay and also the light and add the same value of seconds as the first one.
I hope I explained it clear enough, unless I'd need to make a video for you.
If that's your cause, then first create trigger_start and your light entity.
Make your trigger_start trigger a delay which triggers the light and a second delay but we will get to that later. Also add at least 3 seconds to that delay.
Then create a second delay which triggers the first delay and also the light and add the same value of seconds as the first one.
I hope I explained it clear enough, unless I'd need to make a video for you.

Well the lights went off but I can't turn them on with the button
Here is what I did (trigger ->)
Start -> Delay1
Delay1 -> Delay2, light1 (3 seconds)
Delay2 -> Delay1, light1 (3 seconds)
Button -> light1
Here is what I did (trigger ->)
Start -> Delay1
Delay1 -> Delay2, light1 (3 seconds)
Delay2 -> Delay1, light1 (3 seconds)
Button -> light1
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
Well, that thing I taught you only automatically makes the lights blink. Which makes buttons useless or not working on that, if that wasn't the thing you we're expecting then I'm sorry.

I was going for a simple light on and off with a button in a room same like we do in our life when entering a room switching on or off the light
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
create a trigger_start, let it trigger ur light source and do the usual stuff with the button to turn it on/off. pretty easy
the light will start out off and can be then activated by a button, also deactivated. if thats what u wanted
the light will start out off and can be then activated by a button, also deactivated. if thats what u wanted
@
CrazyPenguin: Just connect trigger_use to env_light, easy bussines.
And bit of advice for future, i see you have problems with basic stuff in editor, guess youre fairly fresh player, but no problem, you could check other maps how other players have done stuff in editor and learn from that.

And bit of advice for future, i see you have problems with basic stuff in editor, guess youre fairly fresh player, but no problem, you could check other maps how other players have done stuff in editor and learn from that.
you nubs still visit usgn site in 2022?
@
crazy junkman Wolfgang: Nope. He wants to make a blinking light which can be closed by players. So it will be blinking and also can be closed or opened at the same time. But what you suggested is just for making a basic light interacted with a
trigger_use.
I believe this is impossible to make it via map editor. We can never know which delay is in the process when a player uses the button. However, we can know that by using Lua.


I believe this is impossible to make it via map editor. We can never know which delay is in the process when a player uses the button. However, we can know that by using Lua.
Shit your pants:
Outlast II Mod (29) | Create your UI faster: CS2D UI Framework


@
Masea: : Oh then i must have missunderstood, but nevertheless it can be done by using the editor, its not anything complicated but that process would use npc-s and explosions aswell as some walls and ofcourse delays. If @
CrazyPenguin: didnt find any solutions i could make small test map for you to study how its done.


edited 1×, last 28.12.17 12:19:39 pm
you nubs still visit usgn site in 2022?
my bad I had the wrong light placed without even noticing
I had Light Stripe placed instead of env_light
I had Light Stripe placed instead of env_light
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
@
CrazyPenguin: Why not just Trigger_Use and Env_Light? works for me, it's a pretty good technique i use for mapping.

It's about time i ditch this account, i've been hiding my identity for too long. I shall spread the news for the people of the Unrealsoftware Community to do the same. Join me, and together we may fight for a new future of the Community, Prevail.
@
The_Admiral: read the comment above yours
read the original post where I specifically said this quote
"EDIT: I had placed wrong light entity without noticing I needed to place env_light which can be switch on and off with simple use trigger button"
And stop trolling people I can see that by all your comments made in my posts around forum
I would like if you do not reply at my comments at all

read the original post where I specifically said this quote
"EDIT: I had placed wrong light entity without noticing I needed to place env_light which can be switch on and off with simple use trigger button"
And stop trolling people I can see that by all your comments made in my posts around forum
I would like if you do not reply at my comments at all
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167



