Nightman0 Posted June 20, 2018 Share Posted June 20, 2018 I'm very new to scripting but jumping in.I'm trying to make a spell that will apply a magic effect to an actor and then if the actor is hit again while under the effect of the magic effect, it will apply a spell to the target that will stagger them.It's a combat hit spell entry obtainable by perk.I can't get it to work and I keep getting the error that DoCombatSpellApply is not a function or does not exist.I can't figure out what to do or if I'm anywhere near right. Thank you for any help. Scriptname SSO_Mark40ArrowSwarmScript extends activemagiceffect MagicEffect Property SSO_Mark40ArrowSwarmEffect Auto spell property ArrowSwarmStagger Auto Event OnEffectStart(Actor akTarget, Actor akCaster) GoToState ("Start") EndEvent State Start Event OnHit(objectreference akAgressor, Form akSource, Projectile akProjectile, Bool abPowerAttack, Bool abSneakAttack, Bool abBashAttack, Bool abHitBlocked) akAgressor.DoCombatSpellApply(ArrowSwarmStagger, akTarget) EndEvent EndState Link to comment Share on other sites More sharing options...
Ghaunadaur Posted June 21, 2018 Share Posted June 21, 2018 Regarding the script error try: (akAgressor as actor).DoCombatSpellApply(ArrowSwarmStagger, akTarget) Link to comment Share on other sites More sharing options...
Recommended Posts