Talk:Adding the Game Instructor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(automatically edit)
No edit summary
Line 1: Line 1:
{{{{discussion page}}{{Message
Please contact the person who wrote the article to see if they can get a link up with the material files. <small>—[[Wikipedia:Wikipedia:Signatures|Unsigned]] comment added by [[User:Gamerzlog11|Gamerzlog11]] ([[User talk:Gamerzlog11|talk]] • [[Special:Contributions/Gamerzlog11|contribs]]). Please use four tildes (<code><nowiki>~~~~</nowiki></code>) to sign your username.</small><!-- Template:Unsigned -->
|user=Gamerzlog11
|time=03:00, 28 May 2019
|Please contact the person who wrote the article to see if they can get a link up with the material files.
}}


== HELP about the event ==
== HELP about the event ==
{{Message
 
|user=SADFI2259X
were should i paste this code ?
|time=15:07, 7 Feb 2023
 
|text=were should i paste this code ?
    IGameEvent *pEvent = gameeventmanager->CreateEvent("instructor_primaryattack");
<pre>
    if (pEvent)
IGameEvent *pEvent = gameeventmanager->CreateEvent("instructor_primaryattack");
    {
if (pEvent)
        pEvent->SetInt("userid", GetUserID());
{
        gameeventmanager->FireEvent(pEvent);
pEvent->SetInt("userid", GetUserID());
    }
gameeventmanager->FireEvent(pEvent);
}
</pre>
}}

Revision as of 19:29, 17 June 2024

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);
   }