• 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 Create a loop?

viniciusturko

New Member
Joined
Jun 23, 2009
Messages
94
Reaction score
2
Location
Brasil
Hello guys,

I have to make a loop that show a magic effect in a certan position...
I don't know what I have to do... Do I have to use "For"? x_x

Can someone guive me an example?
Thanks for all
 
Last edited:
LUA:
-- Created using QtLuaPad on pon sij 31 2011
-- Written by: M4t30

local magpos1 = {
pos = {x=urposition, y= urposition, z= urposition}
}

function onThink(interval, lastExecution)
doSendMagicEffect(magpos1, math.random( x, xx ) )
return TRUE
end

^Example or?
Didnt understand you that good...
 
better make it on globalevent on think ye, beter then a addEvent or for way if you want that effect always appearing, as the other would stop if you reloaded.
 
Back
Top