Talk:Adding the Game Instructor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Reverted edits by DiscussionRepairBot (talk) to last revision by REDESAILE)
Tag: Rollback
(automatically repair discussion (indenting will need to be done manually))
Line 1: Line 1:
{{discussion page}}
{{discussion page}}


{{Message
Please contact the person who wrote the article to see if they can get a link up with the material files. [[User:Gamerzlog11|Gamerzlog11]] ([[User talk:(Gamerzlog11)|talk]]) 03:00, 28 May 2019
|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
text=were should i paste this code ?
|user=SADFI2259X
|time=15:07, 7 Feb 2023
|text=were should i paste this code ?
<pre>
<pre>
IGameEvent *pEvent = gameeventmanager->CreateEvent("instructor_primaryattack");
IGameEvent *pEvent = gameeventmanager->CreateEvent("instructor_primaryattack");
Line 19: Line 12:
gameeventmanager->FireEvent(pEvent);
gameeventmanager->FireEvent(pEvent);
}
}
</pre>
</pre> [[User:SADFI2259X|SADFI2259X]] ([[User talk:(SADFI2259X)|talk]]) 15:07, 7 Feb 2023
}}

Revision as of 15:45, 17 June 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

text=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