View Single Post
Old 02-26-2007, 03:58 AM   #1 (permalink)
IHaveRegistered
Forum Expert
 
IHaveRegistered's Avatar
 
Join Date: Jun 2003
Location: Ontario
Age: 20
Posts: 4,522
Send a message via MSN to IHaveRegistered
Default Changing a "Private" variable forcibly?

Hiya, I was wondering if there's any way I can edit a Private variable outside of that class, forcibly or by any other means. The reason I'm actually asking this instead of just changing the scope of the variable because it's within the core. I've looked around, and seemingly couldn't find an exact answer. For the exact code I'm wanting to change without editing the core... See below.

Lines 2679-2682 in Mobile.cs

Code:
        private static TimeSpan m_WalkFoot = TimeSpan.FromSeconds( 0.4 );
        private static TimeSpan m_RunFoot = TimeSpan.FromSeconds( 0.2 );
        private static TimeSpan m_WalkMount = TimeSpan.FromSeconds( 0.2 );
        private static TimeSpan m_RunMount = TimeSpan.FromSeconds( 0.1 );
Thanks for the help in advance!
__________________
IHaveRegistered is offline   Reply With Quote