Hey all.
I made a little spell that makes use of a timer.
The problem is: I'm executing a function for the timer and I need to exchange some data to this function.
Now I was thinking about creating a global array that stores this data in which the index equals the handle ID of the timer.
However, this is impossible since a handle ID is usually a really long number and the index of an array only goes to 1891.
Now I know what you're thinking: just use a hashtable to store the handle ID in the parent key.
No! I am using a Unit Indexer and would like to keep it that way...
Anyone has any idea on how to tackle this problem?
Is encryption a possible solution? Encrypting the handle ID to make it smaller? What kind of encryption can turn it into a number under 1891 if it is possible?
Should I otherwise create my own counter or..?
I made a little spell that makes use of a timer.
The problem is: I'm executing a function for the timer and I need to exchange some data to this function.
Now I was thinking about creating a global array that stores this data in which the index equals the handle ID of the timer.
However, this is impossible since a handle ID is usually a really long number and the index of an array only goes to 1891.
Now I know what you're thinking: just use a hashtable to store the handle ID in the parent key.
No! I am using a Unit Indexer and would like to keep it that way...
Anyone has any idea on how to tackle this problem?
Is encryption a possible solution? Encrypting the handle ID to make it smaller? What kind of encryption can turn it into a number under 1891 if it is possible?
Should I otherwise create my own counter or..?