English Switching light on/off

11 replies
Goto Page
To the start Previous 1 Next To the start
24.12.17 10:20:37 pm
Up
CrazyPenguin
User
Offline Off
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
edited 1×, last 28.12.17 12:22:08 pm
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
24.12.17 11:50:11 pm
Up
Mr KompotMan
User
Offline Off
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.
IMG:http://orig07.deviantart.net/b34f/f/2017/145/e/b/penguin1_by_tankdempsey2012-dbaeu3p.gif
25.12.17 07:39:51 am
Up
CrazyPenguin
User
Offline Off
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
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
25.12.17 12:04:16 pm
Up
Mr KompotMan
User
Offline Off
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.
IMG:http://orig07.deviantart.net/b34f/f/2017/145/e/b/penguin1_by_tankdempsey2012-dbaeu3p.gif
25.12.17 07:23:03 pm
Up
CrazyPenguin
User
Offline Off
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
25.12.17 10:22:19 pm
Up
Pehlivan
User
Offline Off
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
26.12.17 06:47:37 pm
Up
@user 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.
( ͡° ͜ʖ ͡°) lol kek cheburek ( ͡° ͜ʖ ͡°)
26.12.17 07:14:28 pm
Up
Masea
Super User
Offline Off
@user 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 cs2d entity 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.
Create and design your GUI easy and fast: file cs2d GUI Framework (v2) (12) | Go deep of the darkness and try your intrepidity: file cs2d Outlast 2 Modification (25)
28.12.17 12:10:36 pm
Up
@user 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 @user 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
( ͡° ͜ʖ ͡°) lol kek cheburek ( ͡° ͜ʖ ͡°)
28.12.17 12:19:17 pm
Up
CrazyPenguin
User
Offline Off
my bad I had the wrong light placed without even noticing

I had Light Stripe placed instead of env_light
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
17.01.18 01:55:03 pm
Up
Tw_M
User
Offline Off
@user CrazyPenguin: Why not just Trigger_Use and Env_Light? works for me, it's a pretty good technique i use for mapping.
17.01.18 03:55:57 pm
Up
CrazyPenguin
User
Offline Off
@user Tw_M: 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
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
To the start Previous 1 Next To the start