• 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/

Code Reference to struct type defined in another class

Hi,
Im stucked.

I have mutator with main mutator class and some ObjectClass for this mutator. they share the same package.

Code:
class SomeObject extends Object;

struct SomeStruct
{
	var float value;
	var float BonusMax;
	var float BonusLog;
};

and mutator
Code:
class SomeMut extends Mutator;

var SomeObject.SomeStruct S;

when Im trying to compile I have Error:

SomeMut.uc(3): Error, Unrecognized type 'SomeStruct' within 'SomeObject'

If I define SomeStruct in SomeMut too, then it will give me type mismatches, cause each class have its own 'SomeStruct'

what can I do?
 
Last edited: