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

Lua Timing

Sir Bananas

Lua Scripter, Spriter
Joined
Jul 19, 2011
Messages
344
Reaction score
29
Location
Brazil
Does anyone know how i can add a timer to my action script? Like, something will happen 30 seconds after the player pulled the lever
 
Create a function that will contain something to happen.
So, for example:

LUA:
function announceResult()
doCreatureSay(cid, "Something happened!", TALKTYPE_ORANGE_1)
end

Then in the main function (onUse) add the addEvent part.
LUA:
addEvent(announceResult, 30 * 1000)

:)
 

Similar threads

  • Question Question
Replies
1
Views
478
Back
Top