started working on an actual trigger for Level1

This commit is contained in:
Steffen Fündgens 2015-01-16 16:52:04 +01:00
parent ed6e257b69
commit 66f892bc15

19
Levels/scripts/openDoor1 Normal file
View File

@ -0,0 +1,19 @@
function trigger(objectToChange)
if(not level) then
print("No level found in Lua!")
return
end
if(not physics) then
print("No physics found in Lua!")
return
end
if(not openDoorCounter) then
openDoorCounter = 0
end
openDoorCounter = openDoorCounter + 1
if (openDoorCounter == 3) then
end
end