BPI_Damageable
A Blueprint Interface in Unreal Engine that defines generic damage-receiving functions (ReceiveDamage and CanReceiveDamage). It is used to decouple damage logic and supports unified damage management for players and AI.
Timeline (last 90 days)
The BPI_Damageable blueprint interface contains two functions, ReceiveDamage and CanReceiveDamage, and ReceiveDamage takes three input parameters: Amount, DamageCauser, and HitLocation.
Unreal comes with the ApplyDamage and AnyDamage event systems, and BPI_Damageable is essentially an object-oriented encapsulation of them; the benefit is that interface calls do not depend on UGameplayStatics' global functions, the boundaries of responsibility are clearer, and it is also easier to unit test and swap implementations.
All Facts (2)
The BPI_Damageable blueprint interface contains two functions, ReceiveDamage and CanReceiveDamage, and ReceiveDamage takes three input parameters: Amount, DamageCauser, and HitLocation.
50%UnverifiedUnreal comes with the ApplyDamage and AnyDamage event systems, and BPI_Damageable is essentially an object-oriented encapsulation of them; the benefit is that interface calls do not depend on UGameplayStatics' global functions, the boundaries of responsibility are clearer, and it is also easier to unit test and swap implementations.
50%