Saxum/data/levels/scripts/deleteObject.lua
2015-02-14 09:49:29 +01:00

15 lines
377 B
Lua

if(triggeredDeleteObject == nil) then
triggeredDeleteObject = false
end
function trigger(objectToChange)
if(triggeredDeleteObject == false) then
if(not level) then
print("No level found in Lua!")
return
end
level:deleteObject(objectToChange)
triggeredDeleteObject = true
print("deleteObject")
end
end