From 476c40cb00f9aabd00614104d13ab2bf23d660f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20F=C3=BCndgens?= Date: Fri, 16 Jan 2015 16:52:04 +0100 Subject: [PATCH] started working on an actual trigger for Level1 --- Levels/scripts/openDoor1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Levels/scripts/openDoor1 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