scardoc;Cheat Menu

scardoc;Cheat Menu
Functions

 CheatMenu_RegisterCheatFunction( Function cheatFunction, String title, Boolean OPT_restartMission )
 

将函数添加到任务作弊菜单中,在你提供的标题下显示。这些函数应该在Mission_Preset函数中注册。【功能:注册作弊函数到任务菜单】

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.

  Source: [E:\P4Share\engine\assets\engine\scar\missioncheatmenu.scar] (218)