i have i time source that will run for an undefined period of time, so i cant set when to destroy it inside its code. the thing is, i will create an object that will call that time source and i wanted when that object dies, the time source would die too. to use the instance destroy, i need the id and i cant get the time source id from the other object. any ideia?
Why can't you get the time source id from the other object? When you created the time source, you stored its id in a variable for the instance running it, right?
You have a very pleasant voice to listen to.
another amazing video...like.
Thanks!
i have i time source that will run for an undefined period of time, so i cant set when to destroy it inside its code. the thing is, i will create an object that will call that time source and i wanted when that object dies, the time source would die too. to use the instance destroy, i need the id and i cant get the time source id from the other object. any ideia?
Why can't you get the time source id from the other object? When you created the time source, you stored its id in a variable for the instance running it, right?