Short and simple. The galaxy scripting language provides no support for constant values in records. Your alternative is to place them outside, that's all I cn think of.
You could also simulate having a record storing constant values by only creating one object instance of the record initialized with your "constant" data. Say you have a record called SMath or something, with the values PI, E, PI_OVER_2 etc, and then have an instance "Math", you could basically access it by Math.PI, which is a quite convenient syntax.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Everytime I try to save the map, it gives me a syntax error. Why is this not possible? Or am I doing something wrong?
Short and simple. The galaxy scripting language provides no support for constant values in records. Your alternative is to place them outside, that's all I cn think of.
You could also simulate having a record storing constant values by only creating one object instance of the record initialized with your "constant" data. Say you have a record called SMath or something, with the values PI, E, PI_OVER_2 etc, and then have an instance "Math", you could basically access it by Math.PI, which is a quite convenient syntax.