Talk:Adding the Game Instructor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Talk:Multipage Base Pages Temp Storage/Adding the Game Instructor to Talk:Adding the Game Instructor without leaving a redirect: Moving back to proper place)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
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 -->
{{discussion page}}
 
Please contact the person who wrote the article to see if they can get a link up with the material files. --Gamerzlog11 ([[User talk:Gamerzlog11|talk]]) 03:00, 28 May 2019


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

Latest revision as of 16:01, 15 July 2024

Icon-message-48px.png
This is the discussion page of Adding the Game Instructor. To add a comment, use the Edit button near the headline of the appropriate section. To create a new section, you can use the Add topic button at the top of this page.
Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.

Please contact the person who wrote the article to see if they can get a link up with the material files. --Gamerzlog11 (talk) 03:00, 28 May 2019

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

--SADFI2259X (talk) 15:07, 7 Feb 2023