Es.getgame
From EventScripts Community Encyclopedia
|
[edit] Method: getgameModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionStores the name of the current Source game that loaded EventScripts [edit] Argumentses.getgame()
[edit] Examplesimport es def load(): es.regsaycmd('!game', 'script/game') def game(): game = es.getgame() es.msg('You are playing '+ game) When the player says "!game" it will print the game you are playing in the chatbox. [edit] NotesThe return of this will be (depending of the game):
[edit] See Also |
|
