Skip to content

OnEntityMounted

Usage

  • No return behavior

Example Autogenerated

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

Location

  • BaseMountable::MountPlayer(BasePlayer player)
csharp
//---
	player.OverrideViewAngles(transform.rotation.eulerAngles);
	this._mounted.eyes.NetworkUpdate(transform.rotation);
	player.SendNetworkUpdateImmediate(false);
	Facepunch.Rust.Analytics.Azure.OnMountEntity(player, this, this.VehicleParent());
	this.OnPlayerMounted();
	Interface.CallHook("OnEntityMounted", this, player);
	if (this.allowedGestures == BaseMountable.MountGestureType.None && player.InGesture)
	{
		player.Server_CancelGesture();
	}
	else if (this.allowedGestures == BaseMountable.MountGestureType.UpperBody && player.InGesture && player.CurrentGestureIsFullBody)
//---

Released under the MIT License.