Warm Up or Real Match


(vargatom) #1

Hi,

How to differentiate the game to warm up and the real game?
I would like to write a LUA script and the script do not run in Warm Up.:confused:


(Micha) #2

You can check the gamestate (warmup, in match, intermission) with

gamestate = tonumber(et.trap_Cvar_Get( "gamestate" ))

You are able to check gamestate now:


if gamestate == 0 then

Not sure if this was your question. :slight_smile:


(vargatom) #3

Be sure! Thx!:slight_smile: