How to check if a spell is a projectile in a script?

Post » Wed Jun 20, 2012 4:51 am

Just like the title says, is there a way through scripting to figure out what delivery type a spell is? I know you can do it through perks, but that wont work for what I'm trying to do. Anyone have some crazy insight into this? :)
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Wed Jun 20, 2012 9:43 am

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \  bool abBashAttack, bool abHitBlocked)if (akSource as Spell) && if (akProjectile)  ;StufendifEndEvent
"Stuff" should only happen if you're hit by a projectile using spell...(I think, though I'm not entirely sure how magic staff attacks are handled, not sure if they register as spell or enchantment hits)
User avatar
Erich Lendermon
 
Posts: 3322
Joined: Sat Nov 03, 2007 4:20 pm


Return to V - Skyrim