Flashing light with logic_timer

bamibal

L1: Registered
Aug 14, 2015
47
5
Trying to create a simple flashing light with 1 second interval, but I think I'm going nuts here. These are my settings:

yfcFC0O.png


2FxXgcP.png


And the light is set to 'initially dark'. As far as my brain (or what's left of it) can comprehend: at 0.00 the light + sprite are off, at 1.00 the light + sprite are on, at 2.00 the timer resets. It doesn't work though, they go on and off at weird times.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
What's actually not happening here that you are expecting to happen? (You neglected to say)

I suspect, instead of using a timer, you want to investigate the custom appearance of the light: https://developer.valvesoftware.com/wiki/Light
Though that might mess with the sprite's timings. Not sure, never really used dynamic lights.


EDIT (seems obvious, your light is called licht, is that correct?)
 

bamibal

L1: Registered
Aug 14, 2015
47
5
Yep, licht is Dutch for light. I found out what the problem is though, I actually had the custom appearance of the light still set to 'slow strobe'. That obviously caused the logic_timer to act weird.

Excuse me for being a dummie:O