Eventscripts currentmap

From EventScripts Community Encyclopedia

Description

eventscripts_currentmap stores the name of the current map.


eventscripts_currentmap can be used as a quasi-command from the console (will display current map), or accessed via EventScripts like any other variable by using:

server_var(eventscripts_currentmap)


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


Examples

player_say.cfg

if (event_var(text) equalto "currentmap") then es_xmsg Current map is server_var(eventscripts_currentmap)

es_map_load.cfg

if (server_var(eventscripts_currentmap) = "de_port") then mp_c4timer 45
if (server_var(eventscripts_currentmap) = "de_dust") then mp_c4timer 30


--Faaip 16:55, 16 July 2006 (EDT)

blog comments powered by Disqus