[QUESTION] Access to value in other class

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Dave_Scream

FNG / Fresh Meat
Jan 24, 2010
160
12
0
36
Russia, Rostov-on-Don
vkontakte.ru
Hi.
I write a mutator and want to change some values from console.

so what is the structure:

KillingFloor\MyMutator\MainMutator.uc
KillingFloor\MyMutator\MainMutatorExec.uc

Code:
class MainMutator extends Mutator

var() int SomeValue;

Code:
class MainMutatorExec extends Admin

exec function ChangeSomeValue(int newvalue)
{
  <how to access SomeValue in MainMutator????> = newvalue;
}

how to access SomeValue in MainMutator from MainMutatorExec?
 
Last edited: