Skip to content

CanDismountEntity

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanDismountEntity( BasePlayer player, BaseMountable instance )
{
    Puts( "CanDismountEntity works!" );
}

Location

  • BaseMountable::DismountPlayer(BasePlayer player, bool lite)
csharp
//---
	}
	if (this._mounted != player)
	{
		return;
	}
	if (Interface.CallHook("CanDismountEntity", player, this) != null)
	{
		return;
	}
	BaseVehicle baseVehicle = this.VehicleParent();
	if (lite)
//---

Released under the MIT License.