Saxum/Levels/scripts/deleteObject.lua

12 lines
252 B
Lua

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