Jump to content

Enchanted bow, run spell script on hit.


ZippyDSMlee

Recommended Posts

It's me again Margret....

Anyway I'm trying to get oh hit to work
Event OnDying(Actor akKiller)

Actor TargetActor = GetTargetActor()

seems to work fine but for the life of me I can not get a stupidly simple on hit to trigger....

Bow>enchantment>magicbase>script> spell (its going to be one 4 random spells but I cant get a single one to work...)

Scriptname zippywrathofthegodsnewspell extends ActiveMagicEffect 


Spell Property Zippy_WOTG_SPELL_normal Auto
Actor Target

Event OnEffectStart(Actor akTarget, Actor akCaster)
Target = akTarget
endEvent

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)


Zippy_WOTG_SPELL_normal.Cast(Target, Target)
endEvent



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...