Talk:GetGameRestarted

Revision as of 18:06, 19 July 2015 by imported>JT (→‎A friendly warning: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A friendly warning

Pay close attention to the phrase "exactly once":

if ( GetGameRestarted || GetGameLoaded )
	Print "Foo!"
endif

...

if ( GetGameRestarted || GetGameLoaded )
	Print "Bar!"
endif

Inside the same script, this will print "Foo!" but will never print "Bar!" -- each use of the function automatically resets its use for that script. If you're not careful with your use of this function, it can result in prolonged frustration. =) --JT (talk) 19:06, 19 July 2015 (EDT)

Return to "GetGameRestarted" page.