Page 1 of 1

Reload Map in Editor Mode

Posted: Wed Jul 05, 2017 7:09 am
by rainman14
Hello,

I want to reload current map in editor mode but codes do not work in editor mode.

Code: Select all

gEnv->pSystem->GetIConsole()->ExecuteString(("map " + levelName).c_str()); gEnv->pGameFramework->ExecuteCommandNextFrame(("map " + levelName).c_str());
Both of them don't work.

Thanks

Re: Reload Map in Editor Mode

Posted: Wed Jul 05, 2017 2:39 pm
by mknmknmknjk
those are game or engine code . not editor code.

Re: Reload Map in Editor Mode

Posted: Fri Jul 07, 2017 9:19 pm
by zeph
File > Open

The 'map' console command is used for the game client only. The resources that Sandbox and the game client load are different.