IDamageable
Last updated
Last updated
IDamageable.cs is the core of the FPS Engine's damage system. Any damageable object, from the player to enemies and even destructible props, inherits from IDamageable.cs.
Please notice IDamageable is an interface. Learn more about interfaces in the
Damage(float damage, bool isHeadshot)
Damages the IDamageable.cs object.
damage: Damage to apply on damageable´s health.
isHeadshot: Whether the shot landed on critical areas or not.