Skip to content

CanRaiseSail

Usage

  • Return a bool value to override default behavior

Example Autogenerated

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

Location

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

Released under the MIT License.