Delete factory objects after a certain amount of time

Hello! I was trying to figure out how to delete a factory game object after a certain amount of time but I couldn’t find anything. I know that go.delete() exists however I couldn’t figure out how to put it on a timer. If anyone could help that would be great

Edit: Figured it out but I can’t delete the post

Welcome!
You’ll find the api ref and manuals for the timer

Example:

-- timer.delay([seconds], [repeat], [callback])
timer.delay(10, false, function() go.delete(my_factory_object_url) end)
2 Likes

Yes, using a timer like @WhiteBoxDev showed is the most sensible solution.