F4MP/codigos originales/tiltedcode/Code/client/Events/HealthChangeEvent.h
2026-01-06 18:53:59 +01:00

21 lines
453 B
C

#pragma once
struct TESObjectREFR;
/**
* @brief Dispatched when a local or remote actor's health changes locally.
*
* The exact hueristics for what hit is registered by who can be found in
* the Actor::HookDamageActor() hook.
*/
struct HealthChangeEvent
{
HealthChangeEvent(uint32_t aHitteeId, float aDeltaHealth)
: HitteeId(aHitteeId)
, DeltaHealth(aDeltaHealth)
{
}
uint32_t HitteeId;
float DeltaHealth;
};