• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ C++ delay code

gubbo123

New Member
Joined
Aug 15, 2017
Messages
151
Solutions
1
Reaction score
3
Hello, is possible add a delay to a return false in c++?
using tfs 1.2

yes? anyone can give a example?
 
You wanna use Scheduler / createSchedulerTask().. If I remember its declared as g_scheduler most of the time.

Look into how addEvent works in your sources. Start in luaScript.cpp


sleep() and select() will work but I do not suggest this.

Much love <3
 
Last edited:
Back
Top