10-02-2011, 09:31
Hello,
in my dice edit mod I used powers like time control I made it add the power using the self thread doTime(); code but I dont understand when peaple die they keep the thread, even while it should end on "death"
Must I change the code to remove on death or something like that?
I also tried working with the code:
self.doTime = 1;
and putting the line:
self.doTime = 0; in the onDeath thread.
But when I tested it I didnt have the power both on spawn or after death.
so it didnt work.
so my qeustion how to remove a thread so that the ability to for example change the timescale is removed after death.
Sorry for my bad english and thanks for reading!
in my dice edit mod I used powers like time control I made it add the power using the self thread doTime(); code but I dont understand when peaple die they keep the thread, even while it should end on "death"
Must I change the code to remove on death or something like that?
I also tried working with the code:
self.doTime = 1;
and putting the line:
self.doTime = 0; in the onDeath thread.
But when I tested it I didnt have the power both on spawn or after death.
so it didnt work.
so my qeustion how to remove a thread so that the ability to for example change the timescale is removed after death.
Sorry for my bad english and thanks for reading!