Skip to content

OnPlayerWantsMount

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • BaseMountable::WantsMount(BasePlayer player)
csharp
//---
{
	if (!player.IsValid() || !player.CanInteract())
	{
		return;
	}
	if (Interface.CallHook("OnPlayerWantsMount", player, this) != null)
	{
		return;
	}
	if (!this.DirectlyMountable())
	{
//---

Released under the MIT License.