Talk:Adding the Game Instructor

From Valve Developer Community
Jump to navigation Jump to search

Please contact the person who wrote the article to see if they can get a link up with the material files. Unsigned comment added by Gamerzlog11 (talkcontribs). Please use four tildes (~~~~) to sign your username.

HELP about the event

were should i paste this code ?

   IGameEvent *pEvent = gameeventmanager->CreateEvent("instructor_primaryattack");
   if (pEvent)
   {
       pEvent->SetInt("userid", GetUserID());
       gameeventmanager->FireEvent(pEvent);
   }