| 07-28-2006, 07:49 AM | #1 |
If I attach variables to a caster (which is channeling a spell) can I be assured that it will CleanAttachedVars() itself before it leaves the game? And if that is not the case how can I prevent leaks, because if I try to detect when it finishes channeling it will already be removed from the game before I can clean it yes/no? EDIT: I think I found the solution (assuming I need one). I set the delayhack to a second or so before calling the cast function? Does the delayhack get attached to the caster or will it be screwed up if it channels for 20 seconds and in the meantime the delayhack is changed to something else? Is there anything wrong with having the delayhack be 1.00 permanently? |
| 07-28-2006, 01:17 PM | #2 |
If delayhack is 20. when you call a caster function that caster function will always have 20. as delayhack no matter what you change. And nope caster recycling does not call cleanattachedvars, it would make some simple spells way too slow |
| 07-28-2006, 07:06 PM | #3 |
Thanks. Ya, most of the time there shouldn't be any attached variables to clean eh. |
