Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Event OnHit(ObjectReference akAgressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
  2. if akAgressor == game.getPlayer() && akSource == WoodcuttingAxe
  3. Debug.Notification("Player has hit wood with an acceptable weapon")
  4. if WeaponHitCount.GetValueInt() <= 3
  5. WeaponHitCount.SetValueInt(WeaponHitcount.GetValueInt() + 1)
  6. Else
  7. (Game.GetPlayer()).Additem(Wood, ResourceCount)
  8. WeaponHitCount.SetValueInt(WeaponHitCount.GetValueInt() - 3)
  9. EndIf
  10. EndIf
  11. EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement