- Joined
- Jul 29, 2008
- Messages
- 30
I find that I am in need of using large arrays,and I was wondering if there are any scripts or tutorials for anything like array lists, good array handling or if possible queue implementations?
Any scripts ready made that are good for this sort of thing?
Just to explain the problem. I'm making a new kind of devour ability where the "stomach" is able to hold quite a few victims. However adding and removing units from the arrays used to keep track of the victims gets a bit complicated as there are then holes in the arrays. My goal was to make a centralized system where two arrays the first with the victims and the second with the unit swallowing would be used to apply damage but when units die I want to remove them.
Problems that arise are that arrays in the triggers are finite and not seemingly able to change size, then as well the wholes in the array are not preferable since they take up computation time to go through.
Any ideas? alternate solutions? General exclamations of WTF why are you doing it like that? Thanks for the input!
Any scripts ready made that are good for this sort of thing?
Just to explain the problem. I'm making a new kind of devour ability where the "stomach" is able to hold quite a few victims. However adding and removing units from the arrays used to keep track of the victims gets a bit complicated as there are then holes in the arrays. My goal was to make a centralized system where two arrays the first with the victims and the second with the unit swallowing would be used to apply damage but when units die I want to remove them.
Problems that arise are that arrays in the triggers are finite and not seemingly able to change size, then as well the wholes in the array are not preferable since they take up computation time to go through.
Any ideas? alternate solutions? General exclamations of WTF why are you doing it like that? Thanks for the input!