Well as the title says. I’m just trying to shutdown my server manually by creating a c++ blueprint function. I used FGenericPlatformMisc::RequestExit(true); and GIsRequestingExit = 1; with same results (nothing good).
Everytime I call that function in my GameMode when I check the server console there’s a warning wich means that nothing will be executed “LogScript:Warning: Accessed None”
I’m just struggling really hard in order to discover what the heck is going on, but I’m not seeing what’s wrong. I’ll post my code here so you’ll be able to tellme what’s wrong in it:
public:
UFUNCTION(BlueprintCallable,Category="Test")
static bool ShutdownServer(bool force);
};
bool UShutdownServer::ShutdownServer(bool force)
{
if (force) {
FGenericPlatformMisc::RequestExit(true);
}
else
GIsRequestingExit = 1;
return true;
}
Thank’s in advance.