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);
		_mounted.eyes.NetworkUpdate(transform.rotation);
		player.SendNetworkUpdateImmediate();
		Facepunch.Rust.Analytics.Azure.OnMountEntity(player, this, VehicleParent());
		OnPlayerMounted();
		Interface.CallHook("OnEntityMounted", this, player);
		if (allowedGestures == MountGestureType.None && player.InGesture)
		{
			player.Server_CancelGesture();
		}
		else if (allowedGestures == MountGestureType.UpperBody && player.InGesture && player.CurrentGestureIsFullBody)
//---

Released under the MIT License.