20 lines
463 B
Lua
20 lines
463 B
Lua
|
local global = require( "global" )
|
||
|
if(global.triggeredSunStart == nil) then
|
||
|
global.triggeredSunStart = false
|
||
|
end
|
||
|
|
||
|
function trigger(objectToChange)
|
||
|
if(global.triggeredSunStart == false) then
|
||
|
if(not level) then
|
||
|
print("No level found in Lua!")
|
||
|
return
|
||
|
end
|
||
|
|
||
|
local time = os.clock()
|
||
|
global.sunStartTime = time
|
||
|
global.triggeredSunStart = true
|
||
|
|
||
|
print("sunStart")
|
||
|
end
|
||
|
end
|