Skip to content

CanLowerSail

Usage

  • Return a bool value to override default behavior

Example Autogenerated

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

Location

  • Sail::CanBeLowered(BasePlayer player)
csharp
public bool CanBeLowered(BasePlayer player)
{
	object obj = Interface.CallHook("CanLowerSail", this, player);
	if (obj is bool)
	{
		return (bool)obj;
	}
	if (player != null && !PlayerBoat.IsPlayerAuthedOnChildEntity(this, player, authedIfNoPrivOrLock: true))
//---

Released under the MIT License.