Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
455 B
28 lines
455 B
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
|
|
|