2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_Test_DamageFeedbackSC extends Actor
|
|
|
|
|
|
|
|
Event OnInit()
|
|
|
|
|
|
|
|
if DebugMode.GetValueInt() == 1
|
|
|
|
|
|
|
|
RegisterForSingleUpdate(0.25)
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnUpdate()
|
|
|
|
|
2023-12-08 02:45:53 +00:00
|
|
|
fHealth = Self.GetActorValue("Health")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
|
|
|
|
|
|
|
|
|
|
|
|
Float Damage = fHealth - Self.GetActorValue("Health")
|
|
|
|
fHealth = Self.GetActorValue("Health")
|
|
|
|
Debug.MessageBox("Damage was " + Damage as Float)
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
float fHealth
|
|
|
|
|
|
|
|
GlobalVariable Property DebugMode Auto
|