Trigger loop

Avatar
Lpfreaky90
2,842 Posts
Posted Feb 27, 2012
Hey all,

I'm currently working on a level for Portal Stories, I want to have a func_spark to be constantly going on for a while so I created a logic_relay:
Ontrigger, Spark, Startspark, 0.00
Ontrigger, Spark, Stopspark, 1.00
Ontrigger, !self, trigger, 3.00

A logic_auto triggers this relay onmapspawn. But the loop doesn't seem to work.
I tried using the name of the trigger instead of !self but that didn't work either.
Any suggestions?

Advertisement
Registered users don’t see ads! Register now!
Avatar
FourthReaper
356 Posts
Posted Feb 27, 2012
Replied 22 minutes later
This is a bit trivial perhaps, and I'm sure you've checked already, but did you uncheck the remove on fire spawnflag?

Also, have you tried turning it on and off again?

EDIT: Okay, yeah, I'm with chicken on this one. Just ignore my degenerate ramblings...

Avatar
ChickenMobile
2,460 Posts
Posted Feb 27, 2012
Replied 34 minutes later
I am pretty sure that a relay cannot activate itself without enabling the fast reset flag, however I would have used a timer to do the same thing.

Create a timer with a 3 second interval OR use a timer with a random amount of time between 1-3, make it start enabled then put the output:
OnTimer, Spark, SparkOnce, 0.00

Advertisement
Registered users don’t see ads! Register now!
Avatar
Lpfreaky90
2,842 Posts
Posted Feb 27, 2012
Replied 3 hours later
@chickenmobile: I hate to use timers, for some reason I think relays are easier.
So I took the liberty to cheat a bit:

Sparkie_relay:
Ontrigger, Spark, Startspark, 0.00
Ontrigger, Spark, Stopspark, 1.00
Ontrigger, sparkie_relay_2, trigger, 3.00

Sparkie_relay:
Ontrigger, Sparkie_relay, trigger, 0.00

That works :wink: