Difference between revisions of "Text Input With OBSE"
→The Code: preventing code execution with the Console open
imported>DragoonWraith (→Limitations: semi-colon can't work, either) |
imported>DragoonWraith (→The Code: preventing code execution with the Console open) |
||
Line 54: | Line 54: | ||
ref StringVar | ref StringVar | ||
short bConsole | |||
Begin GameMode | Begin GameMode | ||
Line 95: | Line 97: | ||
set state to 3 | set state to 3 | ||
return | return | ||
endif | |||
; check for Console | |||
if ( OnKeyDown 41 ) | |||
set bConsole to bConsole == 0 ; toggle bConsole | |||
endif | |||
if ( bConsole ) | |||
return ; return if in the Console (the rest of the commands break the Console) | |||
endif | endif | ||