[Solved] Is there a way to check if cheat mode is enabled?

Moderator: Moderator

Post Reply
Message
Author
andar_b
Cornac
Posts: 30
Joined: Thu Nov 08, 2012 6:28 pm

[Solved] Is there a way to check if cheat mode is enabled?

#1 Post by andar_b »

I'm just thinking it makes sense to have 'debug commands' only available under Cheat Mode - quick and dirty way to make sure they're not available to just everyone if I forget to comment them out.

If there IS just a variable I can check, is there a list of engine variables that I could have referenced instead of asking?

Thanks :)
Last edited by andar_b on Sun Nov 18, 2012 8:09 pm, edited 1 time in total.

bricks
Sher'Tul
Posts: 1262
Joined: Mon Jun 13, 2011 4:10 pm

Re: Is there an easy way to check if cheat mode is enabled?

#2 Post by bricks »

tome/dialogs/Birther.lua checks "config.settings.cheat". Don't know if that works globally, though.
Sorry about all the parentheses (sometimes I like to clarify things).

andar_b
Cornac
Posts: 30
Joined: Thu Nov 08, 2012 6:28 pm

Re: Is there an easy way to check if cheat mode is enabled?

#3 Post by andar_b »

That seems to work just peachy. Thank you.

Post Reply