enderalse/source/scripts/_00e_test_damagefeedbacksc.psc

30 lines
600 B
Plaintext
Raw Normal View History

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")
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