PDA

View Full Version : Doesn't like param ()



toby
02-22-2004, 01:36 PM
Hi kids!

I'm trying to make hot-keys for AA levels using Lscript Commander (I'm not a scripter btw), when I turn on low AA, Commander gives me
{
Antialiasing(1);
}
but when run, I get an invalid argument error. It works once I remove any value, () , so I can turn off AA, but how do I make it turn on?

I just checked under the command sequence list and found this for AA:
{
Antialiasing("<level>");
}
So I tried:
{
Antialiasing("<1>");
}
and:
{
Antialiasing("1");
}
And:
{
Antialiasing("<level>");
Antialiasing(1);
}

but always get the same "Line 5, invalid argument 1 type to Antialiasing"

Am I missing something?

evenflcw
02-22-2004, 05:21 PM
Mine gives me:

Antialiasing 1

Without the brakets, and it seems to work!

toby
02-22-2004, 05:34 PM
Does it work after you install it, or just from the LS Commander? Mine works from there too, but not after you install it. If you convert it to Lscript you'll see the brackets.

Kvaalen
02-22-2004, 05:36 PM
{
Antialiasing(1);
}


This works for me. It also works with other levels. That's strange.

evenflcw
02-22-2004, 06:55 PM
Oh silly me, I only tested it within the LSCommander ofcourse. IF I export it as lscript it should and does read:

generic
{
Antialiasing(1);
}

The first row ("generic") tells LW what kinda of script it is. Modeler only has one type of script whereas Layout has several, so it's vital to include it.