Message runs even if the magic effect was self.Dispeled?

Post » Fri Mar 08, 2013 9:59 pm

Er..I still see the message "script done"!?
I thought the message would not run if the magic effect was Dispeled previous?

Maybe I am thinking of RETURN?




Scriptname aadpResultScpt extends activemagiceffect


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

Debug.messagebox("just hit")

utility.wait(0.3)

self.Dispel()
Debug.messagebox("script done")

EndEvent
User avatar
Bird
 
Posts: 3492
Joined: Fri Nov 30, 2007 12:45 am

Post » Fri Mar 08, 2013 8:08 pm

The function will finish running. You need to return if you want the rest to be skipped.

Ciao, Muh!
User avatar
Jesus Lopez
 
Posts: 3508
Joined: Thu Aug 16, 2007 10:16 pm


Return to V - Skyrim