Saxum/data/levels/scripts/firstCheckpoint.lua

16 lines
415 B
Lua
Raw Normal View History

2015-03-15 17:33:12 +00:00
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