enderalse/source/scripts/_00e_oldsherath_brittlewallscript.psc

30 lines
819 B
Plaintext

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önntet ihr die Wand vielleicht aufbrechen.")
endif
EndEvent