On a slightly unrelated note, the following:
Originally Posted by Resike
Code:
if PS_EnableAddon == true then
if PS_SoundEffect == true then
|
Can be simplified to:
Code:
if PS_EnableAddon and PS_SoundEffect then
There's no need to have a separate if-clause for every boolean, and booleans can be tested without "== true".