24 lines
670 B
Lua
24 lines
670 B
Lua
local global = require( "global" )
|
|
if(global.triggeredOpenThirdDoorUndo == nil) then
|
|
global.triggeredOpenThirdDoorUndo = true
|
|
end
|
|
function trigger(objectToChange)
|
|
if(global.triggeredOpenThirdDoorUndo == false) then
|
|
if(not level) then
|
|
print("No level found in Lua!")
|
|
return
|
|
end
|
|
|
|
local strength = 100
|
|
local xPos = -172.5
|
|
local yPos = 25
|
|
local zPos = 58.5
|
|
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
|
|
|
|
global.triggeredOpenThirdDoor = false
|
|
|
|
global.triggeredOpenThirdDoorUndo = true
|
|
print("openThirdDoorUndo")
|
|
end
|
|
end
|