Saxum/data/levels/scripts/unused/openDoor3undo.lua

21 lines
585 B
Lua
Raw Normal View History

2015-02-20 12:26:09 +00:00
local global = require( "global" )
if(global.triggeredOpenDoor3undo == nil) then
global.triggeredOpenDoor3undo = false
end
function trigger(objectToChange)
2015-02-20 12:26:09 +00:00
if(global.triggeredOpenDoor3undo == false) then
if(not level) then
print("No level found in Lua!")
return
end
2015-02-20 12:26:09 +00:00
if(global.triggeredOpenDoor3) then
global.openDoorCounter = global.openDoorCounter - 1
global.triggeredOpenDoor3 = false
end
2015-02-20 12:26:09 +00:00
global.triggeredOpenDoor3undo = true
print("openDoor3undo")
end
end