Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Moderator:GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Sounds like it'll be like this where the type must be the same for all within the commas, and they either all must be declared initialized or not, right?
Okay, so auto detection for type is only for constants then, it appears.
On that note, I noticed you used the word "double" instead of "float" earlier. We're to use double then? Or are you allowing both words to translate into the same thing internally, or will they be truly different?
The language has support for single precision floats. But for the time being these are disabled and if they ever come to pass, only in arrays, classes or structs. There's still people around who actually believe that having smaller sized versions of numeric types is a good idea (which I disagree with, let 'em burn!)
Double it is! Wiki updated. I'm glad the naming convention is actually correct now, because for a while that did confuse me when the word 'float' translated into 'double' in DECORATE. (Even before that, it was fixed_t. So happy that's gone.)
On that note, assuming non-constant strings/names are/will be a thing, I'm assuming we'll have access to functions like stricmp, yes?