public void MountPlayer(BasePlayer player) { this.player = player; player.EnsureDismounted(); typeof(BaseMountable).GetField("_mounted", (BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic)).SetValue(entity, player); player.MountObject(entity, 0); player.MovePosition(entity.mountAnchor.transform.position); player.transform.rotation = entity.mountAnchor.rotation; player.OverrideViewAngles(entity.mountAnchor.transform.rotation.eulerAngles); player.eyes.NetworkUpdate(entity.mountAnchor.transform.rotation); player.ClientRPCPlayer(null, player, "ForcePositionTo", player.transform.position); entity.SetFlag(BaseEntity.Flags.Busy, true, false); OnEntityMounted(); }