2015-01-16 15:51:36 +00:00
|
|
|
if(triggeredDeleteObject == nil) then
|
|
|
|
triggeredDeleteObject = false
|
|
|
|
end
|
2015-01-13 16:52:31 +00:00
|
|
|
function trigger(objectToChange)
|
2015-01-16 15:51:36 +00:00
|
|
|
if(triggeredDeleteObject == false) then
|
|
|
|
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)
|
|
|
|
triggeredDeleteObject = true
|
|
|
|
print("deleteObject")
|
2015-01-13 16:52:31 +00:00
|
|
|
end
|
|
|
|
end
|