Page 1 of 1

CryEngine - Exit game with C++

Posted: Thu Jan 11, 2018 5:04 am
by HDN
I tried this code to quit the game

Code: Select all

gEnv->p3DEngine->ShutDown();
But it just freeze the game for a long time (eventually I have to use Alt+F4 to quit the game).

I searched the document but I didn't see any. I did see shut down for C# though
I searched on google and only found this old article, but it's for flow graph.

So how to exit the game with C++ in CryEngine V

Re: CryEngine - Exit game with C++

Posted: Thu Jan 11, 2018 9:35 am
by Charalampos
Hi, use:

Code: Select all

gEnv->pSystem->Quit();
Here are some infos as well:
viewtopic.php?f=15&t=1491

Hope that helps
Charalampos

Re: CryEngine - Exit game with C++

Posted: Thu Jan 11, 2018 1:09 pm
by HDN
Thank you charalampos :)