enderalse/source/scripts/_00e_mq11a_registerenemydeathscript.psc

29 lines
455 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11a_RegisterEnemyDeathScript extends Actor
Event OnDying(Actor akKiller)
RegisterDeath()
EndEvent
Event OnDeath(Actor akKiller)
RegisterDeath() ; Just in case OnDying fails...
EndEvent
Function RegisterDeath()
If MQ11a.IsRunning()
If bRegisteredDeath == False
bRegisteredDeath = True
(MQ11a as _00E_MQ11a_Functions).RegisterKilledEnemy()
EndIf
EndIf
EndFunction
Quest Property MQ11a Auto
Bool bRegisteredDeath