• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 1.2] Delay / wait function

T

tejdi

Guest
Hello! I am looking for a function that will stop script for X time. Dream usage of function would like like one of those below

Lua:
wait(5) -- script pauses for 5 sec and then continues

I believe that there was something like delay() / wait() years ago, but I may be incorrect.
It would be the fastest way for me to delay some effects in scripts.
 
Hello,
I do not know about delay() or wait() (seems like those in C++ stop the whole server, but I never used it in LUA), but you might try to make a use out of addEvent:
 
Back
Top