How to detect if an "effect" is from a spell that is

Post » Sun Nov 18, 2012 5:36 pm

Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
; if player hits with any HOSTILE magic effect

if (akCaster == GetPlayer() && akEffect = ????????? ;<------------ what would I put here?
debug.messagebox("the spell is HOSTILE!"
endif


endEvent
User avatar
Siobhan Thompson
 
Posts: 3443
Joined: Sun Nov 12, 2006 10:40 am

Post » Mon Nov 19, 2012 3:59 am

I don't think that's currently possible. What are you trying to achieve? Perhaps we can find a different way.
User avatar
mollypop
 
Posts: 3420
Joined: Fri Jan 05, 2007 1:47 am

Post » Sun Nov 18, 2012 8:50 pm

ok, thanks, So I just added an onhit block to the same script and now I can do what I wanted.

I don't think that's currently possible. What are you trying to achieve? Perhaps we can find a different way.
User avatar
Brian Newman
 
Posts: 3466
Joined: Tue Oct 16, 2007 3:36 pm


Return to V - Skyrim