Saxum/Levels/scripts/openFirstDoor.lua

23 lines
579 B
Lua
Raw Normal View History

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
2015-02-13 23:40:52 +00:00
local yPos = 35
local zPos = 17.5
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
triggeredOpenFirstDoorUndo = false
triggereOpenFirstDoor = true
print("openFirstDoor")
end
end