“warte () in lua” Code-Antworten

Wartefunktion Lua

function wait(seconds)
    local start = os.time()
    repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
Tes

Wartefunktion in Lua wieder aufgebaut

function wait(seconds)
  local start = os.time()
  repeat until os.time() > start + seconds
end

-- This is the wait function (mostly known from roblox)
-- It works exactly like the roblox version
-- It's used like this: wait(how many seconds)
Stupid Skipper

warte () in lua

wait(5)  -- Waits 5 seconds then prints "Hello world!"
print("Hello world!")
Sticky

warte () in lua

--this is a example of wait

print("gonna wait some seconds so i can talk again")
wait(2) --wait 2 sec
print("now can i say something")
dl.idiot..

Ähnliche Antworten wie “warte () in lua”

Fragen ähnlich wie “warte () in lua”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen