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

Remove an "addEvent" - Event.

selvex

New Member
Joined
Sep 2, 2010
Messages
6
Reaction score
0
Hello.

I used search and didnt find a answer for my question.

My question is, is it possible to remove an Event which has been added via addEvent?

What I want to do is:
I have a PvP arena with a by player specified time. If this time is over, the pvp round is over and the team with the most kills wins.

But there is also a kill-goal. If you reach the goal, the pvp round is over too.

But, i added the Event for timeout at the start of the pvp round, now i need to delete the timeout-Event when the kill-goal is reached.


How do I do that?
I hope someone can help me.

BW - SLX
 
And where do i get the eventid from?

Just for example:
timeevent = addEvent(timeout,9000,params)

stopEvent(timeevent)

Like this?

Thanks for quick answer.
 
Yep, like that.

e.g.
Code:
local eventid = addEvent(callback, delay, ...)
if(INSERT_CONDITION_HERE) then
	stopEvent(eventid)
end
 
Last edited:
Back
Top