16 lines
415 B
Lua
16 lines
415 B
Lua
|
local global = require("global")
|
||
|
if(global.triggeredFristCheckpoint == nil) then
|
||
|
global.triggeredFristCheckpoint = false
|
||
|
end
|
||
|
|
||
|
function trigger(objectToChange)
|
||
|
if(global.triggeredFristCheckpoint == false) then
|
||
|
if(not level) then
|
||
|
print("No level found in Lua!")
|
||
|
return
|
||
|
end
|
||
|
global.triggeredFristCheckpoint = true
|
||
|
print("firstCheckpoint")
|
||
|
end
|
||
|
end
|