Skip to content

CanMountEntity ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

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

Location ​

  • BaseMountable::MountPlayer(BasePlayer player)
csharp
//---
	}
	if (this.mountAnchor == null)
	{
		return;
	}
	if (Interface.CallHook("CanMountEntity", player, this) != null)
	{
		return;
	}
	player.EnsureDismounted();
	this._mounted = player;
//---

Released under the MIT License.