Thanks for your help friend, but that didn'T work either, the script doesn't even save. Could you tell me by chance if this script is ok, or do you recognize any failures. As I said I'm new to scripting.
As
Langy mentioned, make sure you're loading the
GECK via the latest
NVSE loader, otherwise it won't recognise the
NVSE functions. If it still won't save, try commenting out the calls to con_ToggleMenus and con_ToggleFreeCamera to see if that's the problem, and make sure you've spelled the name of your global variable correctly.
Aside from that, your script should work fine, although I'd recommend using a slightly more optimised approach to detecting keypresses:
Spoiler ScriptName FSEasyConsoleCommandScriptint bKeyPressedBegin GameMode if bKeyPressed != IsKeyPressed FSToggleCameraKey set bKeyPressed to IsKeyPressed FSToggleCameraKey if bKeyPressed con_ToggleMenus con_ToggleFreeCamera endif endifEndBegin MenuMode if bKeyPressed != IsKeyPressed FSToggleCameraKey set bKeyPressed to IsKeyPressed FSToggleCameraKey if bKeyPressed con_ToggleMenus con_ToggleFreeCamera endif endifEnd
I've written a tutorial on detecting keypresses based around this format which can be found on my website - http://www.cipscis.com/fallout/tutorials/detecting_keypresses.aspx
Cipscis