[SOLVED] Does the event ESYSTEM_EVENT_GAME_MODE_SWITCH_START working ?

#1
Hi cry engeneers!
this is my code, I want to catch event, do some thing usefull for whole game on ESYSTEM_EVENT_GAME_MODE_SWITCH_START event
but it's not even start debuging when I place debug point into it

Code: Select all

void CGamePlugin::OnSystemEvent(ESystemEvent event, UINT_PTR wparam, UINT_PTR lparam)
{
switch (event)
{
// Called when the game framework has initialized and we are ready for game logic to start
case ESYSTEM_EVENT_GAME_POST_INIT:
{
gameLogic->LoadLevel();
}
break;
case ESYSTEM_EVENT_GAME_MODE_SWITCH_START: /// <--------------------- no event during GameLancher running
{
gameLogic->GameStart();


}
break;
oh, and how to put code into post ?(

add 5 min later:
oh my apologies guys I find a right event that works fine for me - ESYSTEM_EVENT_LEVEL_GAMEPLAY_START

/Edited by Cry-Flare - Please use the syntax BBCode for posting code snippets :)

Who is online

Users browsing this forum: No registered users and 2 guests

cron