public virtual void AttemptMount(BasePlayer player, bool doMountChecks = true) { if (_mounted != null || IsDead() || !player.CanMountMountablesNow()) { return; } if (doMountChecks) { if (checkPlayerLosOnMount && UnityEngine.Physics.Linecast(player.eyes.position, mountAnchor.position + base.transform.up * 0.5f, 1218652417)) { Debug.Log("No line of sight to mount pos"); return; } if (!HasValidDismountPosition(player)) { Debug.Log("no valid dismount"); return; } } MountPlayer(player); }