Author |
Message |
Plasmius
Joined: Wed Jun 04, 2008 12:28 am Posts: 17
|
I Require Assistance With Emitters Please - Resolved
Alright, this should be a pretty simple request. I want to make my actor's eyes glow red and I haven't the slightest idea what to do with emitters. I know how to do attachables and most other stuff but i haven't used emitters before.
In Before "LOL YEWS SARCH BOTIN NUB", I already looked.
KTHXBAI
Last edited by Plasmius on Mon Mar 23, 2009 8:33 pm, edited 1 time in total.
|
Sun Mar 22, 2009 4:37 am |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: I Require Assistance With Emitters Please
Okidoke, so what you'll do with the following code, after you've pasted it above the definition for your actor's head, is use an AddEmitter = AEmitter block in the head definition to attach it to the head. It looks something like so Code: AddEmitter = AEmitter CopyOf = Eye Glow Here is the code for an emitter that will emit a glow particle constantly. Code: AddEffect = AEmitter PresetName = Eye Glow Mass = 0.1 HitsMOs = 0 GetsHitByMOs = 0 SpriteFile = ContentFile FilePath = Base.rte/Null.bmp FrameCount = 1 SpriteOffset = Vector X = 0 Y = 0 AtomGroup = AtomGroup AutoGenerate = 1 Material = Material CopyOf = Air Resolution = 1 Depth = 0 EffectStartTime = 0 EffectStopTime = 500 EffectStartStrength = 1.0 EffectStopStrength = 0 EffectAlwaysShows = 1 BurstTriggered = 1 AddEmission = Emission EmittedParticle = MOSParticle CopyOf = Glow Particle ParticlesPerMinute = 1000 BurstSize = 1 Spread = 0 MaxVelocity = 0 MinVelocity = 0 PushesEmitter = 0 EmissionEnabled = 1 EmissionsIgnoreThis = 0 BurstSize = 1 BurstScale = 1 BurstTriggered = 1 BurstSpacing = 500 EmissionDamage = 0 FlashOnlyOnBurst = 0 ParentOffset = Vector X = 0 Y = 0 Change the ParentOffset to place it on your actor's head, as well as change the EmittedParticle to match your glow particle. Be careful though, the longer your actor is in a transport the more glow particles will stack and be created all at once when you exit the transport, causing lots of lag.
|
Sun Mar 22, 2009 4:49 am |
|
|
Plasmius
Joined: Wed Jun 04, 2008 12:28 am Posts: 17
|
Re: I Require Assistance With Emitters Please
Thanks a lot! Ill probably play with this tomorrow, its bedtime now
|
Sun Mar 22, 2009 5:17 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: I Require Assistance With Emitters Please
Uh, Duh, wouldn't it be easier to have the glow be from the emitter flash?
Oh right, yes it would.
Basically take any old AEmitter, but make the Flash = Attachable reference a muzzleflash with a glow, specifically your red eye glow. Then make it emit some useless particle that doesn't hit anything and vanishes instantly.
|
Sun Mar 22, 2009 6:30 am |
|
|
Plasmius
Joined: Wed Jun 04, 2008 12:28 am Posts: 17
|
Re: I Require Assistance With Emitters Please
Grif wrote: Uh, Duh, wouldn't it be easier to have the glow be from the emitter flash?
Oh right, yes it would.
Basically take any old AEmitter, but make the Flash = Attachable reference a muzzleflash with a glow, specifically your red eye glow. Then make it emit some useless particle that doesn't hit anything and vanishes instantly. Would i add the Flash = Attachable code anywhere in the code? Would it be like this? Code: Flash = Attachable CopyOf = Muzzle Flash Red and the useless particle would be referenced in the emitter definition right? Code: EmittedParticle = MOSParticle CopyOf = Useless Particle ParticlesPerMinute = 1000 BurstSize = 1 Spread = 0 MaxVelocity = 0 MinVelocity = 0 PushesEmitter = 0 Right? In the meantime ill try the other way. Update: i tried duhs method but the particle from the emitter are leaking like a faucet, how do I fix this? I want them to stay on the actors head.
|
Sun Mar 22, 2009 9:00 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: I Require Assistance With Emitters Please
Yes, you would do it like that.
And the problem with Duh's method is exactly why I proposed mine.
It might help to add PinStrength to the particles but really it's not the best way.
|
Mon Mar 23, 2009 12:07 am |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: I Require Assistance With Emitters Please
You know, I had never known you could do that. Thanks Grif. In addition, that sounds like it would stop the glow from building up in the transport.
Using my method, I usually have to set the glow particle to be GlobalAccScalar = 0 and LifeTime to 10 or 15 to keep them around the head. Not as nice if you want the glow to stay exactly put.
|
Mon Mar 23, 2009 12:38 am |
|
|
Plasmius
Joined: Wed Jun 04, 2008 12:28 am Posts: 17
|
Re: I Require Assistance With Emitters Please
Thank you very much, gentlemen. Ill edit this post if i ever get it to work. Update: I think ive got it, i just need to play with offsets and glows, etc. thanks a lot for the help!
|
Mon Mar 23, 2009 2:05 am |
|
|
shelleyerest
Joined: Thu Jan 15, 2009 7:41 pm Posts: 52
|
Re: I Require Assistance With Emitters Please - Resolved
wait so please put the code that would work
|
Mon Mar 23, 2009 9:47 pm |
|
|
Plasmius
Joined: Wed Jun 04, 2008 12:28 am Posts: 17
|
Re: I Require Assistance With Emitters Please - Resolved
Ill try when i get the time, sorry that i cant do it now. Check back on this post in a few days.
|
Wed Mar 25, 2009 2:48 am |
|
|
|