[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
"Error, Not allowed to use 'config' with object variables"  XML
Forum Index -> UT3 RPG
Author Message
BattleMode

Rampage
[Avatar]

Joined: 11/14/2007 01:35:49
Messages: 126
Offline

With UT2004 you could do things like:

var config array<class<BattleAbility> > Abilities;

Unfortunately UT3 says "Error, Not allowed to use 'config' with object variables" when I try this. Even something as basic as var config class test; results in this error.

Am I missing something here or is it no longer possible to have configurable references to classes?

Is there some way to work around this, e.g. is there a way to convert a string to a class?
BattleMode

Rampage
[Avatar]

Joined: 11/14/2007 01:35:49
Messages: 126
Offline

Found a workaround:

struct AbilityWrapper {
var class<BattleAbility> AbilityClass;
};

var config array<AbilityWrapper> Abilities;
 
Forum Index -> UT3 RPG
Go to: