• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Timers

Status
Not open for further replies.
Does Eluna have any timers?

Like i want to execute something each 30 mins fomr the moment the server starts.
There an timer that runs an function on certain intervals?
 

Rochet2

Moderator / Eluna Dev
Code:
local function timed(event, delay, repeats)
   -- code
end

CreateLuaEvent(timed, 1000, 0)

http://eluna.emudevs.com/Global/CreateLuaEvent.html

If you are looking for creature/player/gameobject specific timed events later, they are creature:RegisterEvent(...)
and they work exactly the same way as createluaevent except a 4th argument is passed to the function that is triggered, in this case the "creature" would be after the "repeats" in the code above
 
Status
Not open for further replies.
Top