RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Q]Access Level Visibility

koluch

Sorceror
[Q]Access Level Visibility

I have been looking through the scripts and cant seem to find where it calls for players of the same access lvl to be able to see them - unlike before, where same access levels of staff were invis to the others of the same level.

Does someone know were I might find this?

Thanks
 

Khaz

Knight
It's in the core Mobile class file:
Code:
		public virtual bool CanSee( Mobile m )
		{
			if( m_Deleted || m.m_Deleted || m_Map == Map.Internal || m.m_Map == Map.Internal )
				return false;

			return this == m || (
				m.m_Map == m_Map &&
				(!m.Hidden || m_AccessLevel > m.AccessLevel) &&
				(m.Alive || !Alive || m_AccessLevel > AccessLevel.Player || m.Warmode));

		}
It's virtual, so you can override it in PlayerMobile.
 
Top