Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,219
Hi I got a few questions on allocate and structs.
1. why do I need to use allocate in the constructor
2. do I need to have it in the constructor no mater what or only during certain conditions
3. how do I "deindex" a object from a struct? like when a unit dies I want to remove this.values from the struct to save memory.
4. how do I loop though all my objects inside a struct? I suspect you use some kind of list but I dont know what it's called in jass
1. why do I need to use allocate in the constructor
2. do I need to have it in the constructor no mater what or only during certain conditions
3. how do I "deindex" a object from a struct? like when a unit dies I want to remove this.values from the struct to save memory.
4. how do I loop though all my objects inside a struct? I suspect you use some kind of list but I dont know what it's called in jass