View Single Post
Re: the new event interface...
Old
  (#5)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: the new event interface... - 19-03-2005

so how do you pick up events with the new SDK, whats the firing method??

I mean, I know I need to make the plugin implement the IGameEventListener2 interface as well, then add the FireGameEvent(IGameEvent*) method into the plugin. Then add a listener to every event I want to catch. But the events never get called, I don't know whats wrong, maybe it's because I'm trying to support both old & new methods at the same time.

[edit]

8o ok looks as though yuo can only do one at a time (or maybe it's only certain events that seem to work -- what happens to the bulletimpact event?), after I made an interface to work on both, oh well it's easy to switch between the two. Although I was wondering, you could get the "eventid" from the keyvalues as an integer instead of having to seach the string all the time you can check the integer for the correct event. It doesn't seem to wok with IGameEvent anymore, alwasy returns 0

Last edited by Cheeseh; 19-03-2005 at 03:23..
  
Reply With Quote