diff --git a/Levels/ObjectSetups/Level1.xml b/Levels/ObjectSetups/Level1.xml index 5626fcc..2d5fa20 100644 --- a/Levels/ObjectSetups/Level1.xml +++ b/Levels/ObjectSetups/Level1.xml @@ -26,16 +26,16 @@ 0 - deleteRandomObjectAtTorch + deleteMarbleAtTorch 0.0 0.0 0.0 1 3 - 2.0 + 2.5 false 0 - deleteRandomObject + deleteObject 1 5 0 diff --git a/Levels/scripts/deleteObject.lua b/Levels/scripts/deleteObject.lua new file mode 100644 index 0000000..a49b066 --- /dev/null +++ b/Levels/scripts/deleteObject.lua @@ -0,0 +1,11 @@ +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 + level:deleteObject(objectToChange) +end