enderalse/source/scripts/dgintimidatequestscript.psc

16 lines
529 B
Plaintext
Raw Normal View History

Scriptname DGIntimidateQuestScript extends Quest
keyword property WICrowdStart auto
Int property OpponentCon Auto
Function RestoreActorHealthOnBleedOut(Actor akBleeder)
If akBleeder.IsBleedingOut()
; restore akBleeder's health to above 0
Float bleederHealth = akBleeder.GetActorValue("health")
If bleederHealth < 1
bleederHealth = 10 - bleederHealth
; debug.trace(self + " restoring " + bleederHealth + " health to " + akBleeder)
akBleeder.RestoreActorValue("health", bleederHealth)
EndIf
EndIf
EndFunction