If you have experience with Jass then you probably know that every handle type has to be created. For example:
local group g = CreateGroup()
Without creategroup you couldn't access this variable because it's empty - pointing nowhere actually.
Structs work in a similar way - just defining a struct does nothing, once you do a create you have access to it's members. Don't forget to destroy though, as you have a limit on the number of created structs.
local group g = CreateGroup()
Without creategroup you couldn't access this variable because it's empty - pointing nowhere actually.
Structs work in a similar way - just defining a struct does nothing, once you do a create you have access to it's members. Don't forget to destroy though, as you have a limit on the number of created structs.