Adding an Emittance by papyrus?

Post » Thu Jun 21, 2012 8:50 pm

Hello,
it is possible to add an (exterior) emittance to a object added by the placeatme() function?

Scriptname mannyAttachGlow extends ObjectReference  STATIC Property FXGlow  Autoint doOnce = 0event onCellAttach()    if doOnce == 0        self.placeatme(FXGlow)        doOnce = 1    endifendEvent

Thank you
User avatar
Jason White
 
Posts: 3531
Joined: Fri Jul 27, 2007 12:54 pm

Post » Thu Jun 21, 2012 2:46 pm

Yes. I do this for my Ball Lightning spell, though it happens in real time, not onCellAttach, I see no reason why what you have wouldn't work. I recommend the FXGlowFillRound* statics, as they give a billboard-style glow that works from any angle.

Statics can also be the target of SetScale and MoveTo, so there are some options for size and positioning. They cannot be Translated.

Just remember to remove the static again if the object needs to go away for any reason.
User avatar
carley moss
 
Posts: 3331
Joined: Tue Jun 20, 2006 5:05 pm

Post » Fri Jun 22, 2012 12:09 am

In fact I'm using the same static (FxGlowFillRoundDim). This glow will be attached to a light lantern. This light have the FXLightRegionInvertDayNight emittance. I would to add that emittance to the FxGlowFillRoundDim too by papyrus.
How did you added the emittance?

Thank you.
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Thu Jun 21, 2012 7:30 pm

If I'm understanding you correctly, then to add lighting to my spell I just used a light property with a custom Light form that I enabled/disabled with the spell's appearance and disappearance. You can see the lighting effect here: https://www.youtube.com/watch?v=d4EKDzbB7cU
User avatar
chirsty aggas
 
Posts: 3396
Joined: Wed Oct 04, 2006 9:23 am

Post » Thu Jun 21, 2012 9:45 pm

Just seen your video :) Sorry is not exactly what I searching for.
I want to know if I can add emittance to an object.

Thank you anyway :)
User avatar
Stephanie Kemp
 
Posts: 3329
Joined: Sun Jun 25, 2006 12:39 am

Post » Thu Jun 21, 2012 3:41 pm

Hi to all,
any idea?
User avatar
Matthew Aaron Evans
 
Posts: 3361
Joined: Wed Jul 25, 2007 2:59 am


Return to V - Skyrim