Skip to content

CanDemolish

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? CanDemolish( BasePlayer player, DecayEntity instance )
{
    Puts( "CanDemolish works!" );
    return null;
}

Location

  • DecayEntity::CanDemolish(BasePlayer player)
csharp
private bool CanDemolish(BasePlayer player)
{
	object obj = Interface.CallHook("CanDemolish", player, this);
	if (obj is bool)
	{
		return (bool)obj;
	}
	if (IsDemolishSupported && IsDemolishable())
//---

Released under the MIT License.