Saxum/Levels/scripts/openFirstDoor.lua
2015-02-14 00:40:52 +01:00

23 lines
579 B
Lua

if(triggereOpenFirstDoor == nil) then
triggereOpenFirstDoor = false
end
function trigger(objectToChange)
if(triggereOpenFirstDoor == false) then
if(not level) then
print("No level found in Lua!")
return
end
local strength = 100
local xPos = 81.5
local yPos = 35
local zPos = 17.5
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
triggeredOpenFirstDoorUndo = false
triggereOpenFirstDoor = true
print("openFirstDoor")
end
end