2015-03-15 17:33:12 +00:00
|
|
|
local global = require("global")
|
|
|
|
if(global.triggeredFristCheckpoint == nil) then
|
|
|
|
global.triggeredFristCheckpoint = false
|
|
|
|
end
|
|
|
|
|
2015-03-15 17:46:44 +00:00
|
|
|
function trigger(objectToChange, printDebug)
|
2015-03-15 17:33:12 +00:00
|
|
|
if(global.triggeredFristCheckpoint == false) then
|
|
|
|
if(not level) then
|
|
|
|
print("No level found in Lua!")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
global.triggeredFristCheckpoint = true
|
2015-03-15 17:46:44 +00:00
|
|
|
if(printDebug) then
|
|
|
|
print("firstCheckpoint")
|
|
|
|
end
|
2015-03-15 17:33:12 +00:00
|
|
|
end
|
|
|
|
end
|