1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
754 B

Scriptname _00E_ShatterScript extends activemagiceffect
Spell Property _00E_Ability_FrostbreathCastBody Auto
Actor Property PlayerREF Auto
ACtivator Property _00E_ShatteredEnemyPile Auto
Explosion Property _00E_FrostShatteringExplosion Auto
Explosion Property _00E_FrostShatteringExplosion02 Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
bool IsFrozen = akTarget.HasSpell(_00E_Ability_FrostbreathCastBody)
if isFrozen == true
Debug.Notification("Target is frozen!")
akTarget.PlaceAtMe(_00E_FrostShatteringExplosion02)
akTarget.PlaceAtMe(_00E_FrostShatteringExplosion)
akTarget.Kill(PlayerREF)
akTarget.SetAlpha (0.0, true)
akTarget.AttachAshPile(_00E_ShatteredEnemyPile)
else
Debug.Notification("Target is not frozen!")
endif
EndEvent