Interface IDamageableDoor
- Namespace
- Exiled.API.Interfaces
- Assembly
- Exiled.API.dll
Interface for doors that can be damaged.
public interface IDamageableDoor
- Extension Methods
Properties
Health
Gets or sets the health of the door.
float Health { get; set; }
Property Value
IgnoredDamage
Gets or sets damage types which will be ignored.
DoorDamageType IgnoredDamage { get; set; }
Property Value
- DoorDamageType
IsBreakable
Gets a value indicating whether this door is breakable.
bool IsBreakable { get; }
Property Value
IsDestroyed
Gets or sets a value indicating whether door is destroyed.
bool IsDestroyed { get; set; }
Property Value
MaxHealth
Gets or sets max health of the door.
float MaxHealth { get; set; }
Property Value
Methods
Break(DoorDamageType)
Breaks the specified door. No effect if the door cannot be broken, or if it is already broken.
bool Break(DoorDamageType type = DoorDamageType.ServerCommand)
Parameters
type
DoorDamageTypeThe Interactables.Interobjects.DoorUtils.DoorDamageType to apply to the door.
Returns
- bool
true if the door was broken, false if it was unable to be broken, or was already broken before.
Damage(float, DoorDamageType)
Damages the door.
bool Damage(float amount, DoorDamageType damageType = DoorDamageType.ServerCommand)
Parameters
amount
floatAmount to be dealt.
damageType
DoorDamageTypeDamage type. Some types can be ignored.
Returns
Repair()
Repair the door.
void Repair()