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.

30 lines
819 B

Scriptname _00E_OldSherath_BrittleWallScript extends ObjectReference
Sound Property _00E_MQ11_PickaxeSound Auto
Weapon Property WeapPickaxe Auto
Actor Property PlayerREF Auto
int doOnce
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
if akSource == WeapPickaxe && doOnce == 0
_00E_MQ11_PickaxeSound.Play(PlayerREF)
doOnce = 1
elseif akSource == WeapPickaxe && doOnce == 1
_00E_MQ11_PickaxeSound.Play(PlayerREF)
doOnce = 2
elseif akSource == WeapPickaxe && doOnce == 2
_00E_MQ11_PickaxeSound.Play(PlayerREF)
self.PlayAnimation("openStart")
doOnce = 3
else
Debug.Notification("Mit etwas Spitzem k<EFBFBD>nntet ihr die Wand vielleicht aufbrechen.")
endif
EndEvent