Es getgame

From EventScripts Community Encyclopedia


Overview

Syntax: es_getgame <var>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xgetgame

Description

Stores the name of the current Source game that loaded EventScripts

Parameters

  • var - variable to store the name of the game.


Examples

es_setinfo game 0
es_getgame game
if ("Counter-Strike" in server_var(game)) then es_setinfo script_gametype "cstrike"
if ("Day of Defeat" in server_var(game)) then es_setinfo script_gametype "dod"
if ("Deathmatch" in server_var(game)) then es_setinfo script_gametype "hl2mp"
if ("Team Fortress" in server_var(game)) then es_setinfo script_gametype "tf"


Notes

(None)


See also

(None)

blog comments powered by Disqus