Oh I forgot a semi colon.
I didn't know that was needed... Usually code begins with { and ends with }. "Now with more random semi colons!";
It does feel random, but basically what you're doing is creating an object à la
new Class(); - which requires a semicolon. However, TorqueScript allows you to define tagged fields (or maybe member fields? Whatever) by adding a pair of curly braces.
However you're still ultimately just calling
new Class();, so you still need a semicolon at the end. How this explains packages, I don't know.
And yes, this means you can do things like
BotGroup.add(new AIPlayer() { datablock = PlayerNoJet; position = BotGroup.spawnPos; });.