mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2025-02-18 01:41:27 +00:00
lua: fix for missing while loop
This commit is contained in:
parent
48a71512e9
commit
9577b173a2
1 changed files with 2 additions and 0 deletions
|
@ -25,7 +25,9 @@ timer5 = 35
|
||||||
function et_InitGame( levelTime, randomSeed, restart )
|
function et_InitGame( levelTime, randomSeed, restart )
|
||||||
et.RegisterModname( modname .. " " .. version )
|
et.RegisterModname( modname .. " " .. version )
|
||||||
|
|
||||||
|
local mil_sec = (levelTime*1000)%60
|
||||||
|
|
||||||
|
while(true) do
|
||||||
|
|
||||||
if(mil_sec == timer)
|
if(mil_sec == timer)
|
||||||
then et.trap_SendConsoleCommand( et.EXEC_NOW, "cp \"" .. banner .."^7\n" )
|
then et.trap_SendConsoleCommand( et.EXEC_NOW, "cp \"" .. banner .."^7\n" )
|
||||||
|
|
Loading…
Reference in a new issue