diff --git a/Levels/scripts/openDoor1 b/Levels/scripts/openDoor1 new file mode 100644 index 0000000..9969218 --- /dev/null +++ b/Levels/scripts/openDoor1 @@ -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