Created
October 2, 2012 12:51
-
-
Save cornernote/3818841 to your computer and use it in GitHub Desktop.
Remove Items after 5 Minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Jeija wrote this for blockplanet a while back. | |
-- In item_entity.lua add timer = 0, under the line physical_state = true, | |
-- And in the beginning of on_step add this in: | |
self.timer = self.timer + dtime | |
if (self.timer > 300) then | |
self.object:remove() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment