PDA

View Full Version : Event call back error?


DiscoBBQ
07-22-2010, 09:36 PM
Has anyone else been able to hook events yet?

I've been semi-successful, using the sample plugin.

Listening:
void CASW_EmptyServerPlugin::LevelInit( char const *pMapName )
{
gameeventmanager->AddListener( this, "marine_hurt", true);
}

Catching:
void CASW_EmptyServerPlugin::FireGameEvent(IGameEvent * event)
{

Msg("Event Triggered\n");
}

When the event actually triggers, I am faced with a different console message, "GameEventListener2 callback in list that should NOT be - marine_hurt!"

Anyway to override this? Other routes of catching?