Data Realms Fan Forums http://45.55.195.193/ |
|
Emission Delay? http://45.55.195.193/viewtopic.php?f=1&t=13642 |
Page 1 of 1 |
Author: | Solace [ Sun Feb 01, 2009 7:31 pm ] |
Post subject: | Emission Delay? |
Well so far as I've seen, when you make an emitter, it emits everything at once, then waits for the next time to emit based on the particles per minute value. That is, except in the Squadmate in a Bottle mod, which according to that rule should spawn infinite squadmates instantly and crash your game, but instead each squadmate waits four seconds before spawning the first one. However, I can't figure out how it's done. This would be a very handy trick to know since it would let someone put a timer on /anything/ just by adding an emitter that shoots off something with a lot of mass some specified time in the future, or events on a timer by emitting them then. |
Author: | CandleJack [ Sun Feb 01, 2009 7:37 pm ] |
Post subject: | Re: Emission Delay? |
Have you looked at its code? Also, there is a variable that prevents emitters from emitting right away in build 22, but I don't remember what it is or anything that uses it. |
Author: | Solace [ Sun Feb 01, 2009 7:45 pm ] |
Post subject: | Re: Emission Delay? |
Yeah there isn't anything in there that's different from what I use (unless it's the FlashOnlyOnBurst variable which I don't know what it does), but if there's already a variable I can just add to make this work it would be soooo awesome if someone could tell me it. o.o |
Author: | Grif [ Sun Feb 01, 2009 8:03 pm ] |
Post subject: | Re: Emission Delay? |
FlashOnlyOnBurst means that the emitter's flash will only appear when the emitter bursts. Bursts are a periodic, delayed series of emissions that will occur all at once in multiple numbers. As an example, tapping the jetpack thrusters. Normal emitters emit a constant stream. I haven't seen the squadmate in a bottle code, but the ParticlesPerMinute variable is not very intuitive. If you set it to 120, then it will emit 2 per second. If you set it to 1, it will emit one particle anywhere between one and sixty seconds from spawning. 60, and there's a 1-10 second variation. 100, 1-6 second. It's very strange and also entirely unpredictable. Quote: This would be a very handy trick to know since it would let someone put a timer on /anything/ just by adding an emitter that shoots off something with a lot of mass some specified time in the future, or events on a timer by emitting them then. I've been using emitter timers for a while now. As a matter of fact, all but one of the OKM use emitter timers. They're decently reliable, but only if the PPM is above 100 or so. |
Author: | Shook [ Sun Feb 01, 2009 8:34 pm ] |
Post subject: | Re: Emission Delay? |
Code: StartTimeMS = ## That variable is your friend, in this case. If you put it into the emissions code (Next to spread, velocity etc.), the emission will start after ## milliseconds. It's found in the Coalition Rocket Launchers rocket, for one. |
Author: | Solace [ Sun Feb 01, 2009 9:12 pm ] |
Post subject: | Re: Emission Delay? |
OMG thankythankyou that is sooo awesome to know how to do. *acts noobishly excited but doesn't care, this is gonna be fuuun... |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |