Looping Effect? (Some LUA involved)
Posted: Mon Apr 13, 2015 9:59 pm
Hi everyone.
I've just finished making a custom effect in Particle Editor - it's just the defense buff effect, but orange, and it's Particle instead of Billboard. Anyway, the 'animation' or behaviour of the effect is essentially the same as the defense buff, so in essence the rings spawn and expand outwards, then disappear. That's it. Here's where it gets interesting...
I'm loading the effect through a custom ingame.lvl and having it spawn on certain units under specific conditions (code excerpt below). That part works great, and the effect plays... once. However, I'd like it to loop until I want to turn it off... is there a way to do that using LUA? Or would I have to do it manually and just make the effect animation repeat itself for a very long time using the Particle Editor? I tried looking at the Tantive turbine effect prop for reference but it looks like they just made the lightning stuff a damage effect (from 100% to 80% health range), which is hard-coded to loop anyway.
Any ideas?
(Excerpt from AssassinMode.lua)
I've just finished making a custom effect in Particle Editor - it's just the defense buff effect, but orange, and it's Particle instead of Billboard. Anyway, the 'animation' or behaviour of the effect is essentially the same as the defense buff, so in essence the rings spawn and expand outwards, then disappear. That's it. Here's where it gets interesting...
I'm loading the effect through a custom ingame.lvl and having it spawn on certain units under specific conditions (code excerpt below). That part works great, and the effect plays... once. However, I'd like it to loop until I want to turn it off... is there a way to do that using LUA? Or would I have to do it manually and just make the effect animation repeat itself for a very long time using the Particle Editor? I tried looking at the Tantive turbine effect prop for reference but it looks like they just made the lightning stuff a damage effect (from 100% to 80% health range), which is hard-coded to loop anyway.
Any ideas?
(Excerpt from AssassinMode.lua)
Hidden/Spoiler: