Talk:Adding the Game Instructor

From Valve Developer Community
Revision as of 08:07, 7 February 2023 by SADFI2259X (talk | contribs) (→‎HELP about the event: new section)
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);
   }