Scriptname SuH_actorS_bear extends ObjectReference  

SuH_Fun property _f auto

int hitcd

Event OnInit()
	_f = Game.GetFormFromFile(0x814, "Succubus Heart.esp") as SuH_Fun
endEvent

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
	if hitcd == 0
		_f.xpPet("bear", actionID="hit")
		hitcd = 1
		RegisterForSingleUpdate(5.0)
	endIf
endEvent

Event OnDeath(Actor attchar)
	_f.deathPet("bear")
endEvent

Event OnUpdate()
	hitcd = 0
endEvent