• 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!

How to make a timer? In TFS 0.2.15

8674011

New Member
Joined
Jun 21, 2010
Messages
160
Reaction score
3
Location
The House
For all my events i need to end up making 3 global events, because for some reason the addevent function won't let me put at timer on it, and I also tried putting the OS.TIME into a global storage and then putting that in a while loop until it's under the time but that' wouldn't work either, so can anyone tell me or show me how?
 
What should it do exactly?
The function works like this.
Code:
addEvent(function, time, parameters)
Example
Code:
addEvent(broadcastMessage, 60 * 1000, "Hello")
This will broadcast the message "Hello" after 1 minute.
 
What is the problem you have with using that function in addEvent?
It will be the same as the broadcast example.
Code:
addEvent(doTeleportEveryoneOutRoom, 15 * 60 * 1000, theparametersofthatfunction)
Then instead of doTeleportEveryoneOutRoom how you named the function and instead of theparametersofthatfunction, the parameters you used in the function.
 
Back
Top