Quote:
I tried using the 'world.EnableGroup "group", 0' command, but it doesn't do anything except confuse the system.
The words "confuse the system" have confused the programmers.
If I try your example I actually got:
unexpected symbol near ','
The actual error message always helps. :)
In Lua if you have multiple arguments you have to put them in brackets, like this:
world.EnableGroup ("foogroup", false)
-- or
world.EnableGroup ("foogroup", true)
A bit of testing shows that, whilst WillFa is right about Lua in general treating 0 as true, the function EnableGroup will actually work correctly if you use 0 and 1, it was the brackets that were your problem.
|