Code: Select all
if (f%10 == 0) then
Code: Select all
if f%10 == 0 then
Moderator: Moderators
Code: Select all
if (f%10 == 0) then
Code: Select all
if f%10 == 0 then
The problem is that, last time I checked, LuaGaia was severly limited compared to LuaRules. Has it been changed?FLOZi wrote:Maps should exclusively use LuaGaia
Of course you do, LuaGaia is a separate lua environment - which is why maps should use it exclusively. Just because other maps / older maps don;t doesn't mean people should continue to.
Code: Select all
if isReady then
Code: Select all
if label ~= "" then
Code: Select all
bla = blub or blop
knorke wrote: Imo the f%10 is already bit "tricky" for such basic level tutorial but it is some commonly used in spring...
Code: Select all
function everyTenthFrame(frames)
if f%10==0 then return true else return false end
end
...
if everyTenthFrame(frames)== true then
--do stuff
end
+1FLOZi wrote:Modulo is quite a common enough concept early on in basic programming imo