I tried:
Code: Select all
exit(0);
and
gEnv->pGameFramework->ShutdownEngine();
Are there any other methods?
Moderators: Cry-Nic, Community Volunteers
Code: Select all
exit(0);
and
gEnv->pGameFramework->ShutdownEngine();
Code: Select all
gEnv->pConsole->ExecuteString("quit", false, true);
Code: Select all
<action name="escape" onPress="1" onRelease="1" retriggerable="1" keyboard="escape"/>
Code: Select all
// Register the action
m_pInputComponent->RegisterAction("player", "escape", [this](int activationMode, float value)
{
if (activationMode == eIS_Released)
{
gEnv->pSystem->Quit();
}
});
// Bind the escape action to the escape key
m_pInputComponent->BindAction("player", "escape", eAID_KeyboardMouse, EKeyId::eKI_Escape);
He's using C++ not Flowgraph. One is efficient, the other is not. C++ is always recommended over Flowgraph.
Return to “Programming General”
Users browsing this forum: No registered users and 3 guests