29 lines
455 B
Plaintext
29 lines
455 B
Plaintext
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
|