Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Event OnHit(ObjectReference akAgressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
- if akAgressor == game.getPlayer() && akSource == WoodcuttingAxe
- Debug.Notification("Player has hit wood with an acceptable weapon")
- if WeaponHitCount.GetValueInt() <= 3
- WeaponHitCount.SetValueInt(WeaponHitcount.GetValueInt() + 1)
- Else
- (Game.GetPlayer()).Additem(Wood, ResourceCount)
- WeaponHitCount.SetValueInt(WeaponHitCount.GetValueInt() - 3)
- EndIf
- EndIf
- EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement