View Full Version : Variable access question

30th May 2008, 02:56 PM
Say I have 2 custom packages Ė customtools.u and customplayer.u.

In customplayer there is customplayercontroller.uc that needs to access a variable declared (within a class) inside customtools.

Iíve tried using the full path (i.e. customtools.toolclass.variablename) within customplayercontroller.uc, but that gives a compiler error saying that it isnít recognized.

Is there a way to do this I'm missing? Iíd rather not combine customtools and customplayer into one package so that they can access each otherís methods and global variables.


30th May 2008, 03:05 PM
If you want two classes to share their variables, they must be in the same package. Packages may only form a dependency tree, cyclic dependencies are not possible.

2nd Jun 2008, 01:43 PM
Thanks for your help!