Function
CheatMenu
CheatMenu_RegisterCheatFunction
Adds a function to the Mission Cheat menu, under the title you provide. These should be registered in the Mission_Preset function.
On this page
CheatMenu_RegisterCheatFunction(cheatFunction, title, restartMission)Description
If the restartMission flag is set, when the cheat is activated the mission will be restarted. Most of the startup script happens as normal: Mission_SetupVariables, Mission_SetDifficulty, Mission_SetupRestrictions and Mission_Preset are all called as normal, but the supplied function is called INSTEAD OF the regular Mission_Start function.
Parameters
cheatFunctionFunctionrequiredtitleStringrequiredrestartMissionBooleanoptional
Returns
UnknownSource
Declared in the game's script sources at:
scar/missioncheatmenu.scar