Cheat Board
Beginning with the 1.0 release, Coffee Stain now distributes their Unreal Cheat Board with the game.
It can be accessed by
enabling cheats
then running the Cheats console command.
Adding New Cheats
Mods can add additional cheats to the existing Cheat Board.
-
Implement a cheat UFunction as
CheatBoardin a class derived fromUCheatManagerExtension. -
Register the cheat manager extension class via
UCheatManager::OnCheatManagerCreatedDelegate.
See the code example below from Archengius:
Header file:
UCLASS(MinimalAPI)
class UMyCoolCheatManagerExtension : public UCheatManagerExtension
{
GENERATED_BODY()
public:
UFUNCTION(Exec, CheatBoard)
void MyCoolCustomCheat();
}
Registering the class in StartupModule:
void FMyCoolModModule::StartupModule()
{
UCheatManager::OnCheatManagerCreatedDelegate.AddLambda([](UCheatManager* CheatManager)
{
CheatManager->AddCheatManagerExtension(NewObject<UMyCoolCheatManagerExtension>(CheatManager));
});
}