CanDemolish
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanDemolish( BasePlayer player, StabilityEntity instance )
{
Puts( "CanDemolish works!" );
}
Location
- StabilityEntity::CanDemolish(BasePlayer player)
csharp
private bool CanDemolish(BasePlayer player)
{
object returnvar = Interface.CallHook("CanDemolish", player, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
return this.CanBeDemolished && this.IsDemolishable() && this.HasDemolishPrivilege(player);
//---