I'm new to structs with the GM update. Couldnt find a whole lot of info on how to work with struct variables.
So, if I do
Does that copy or just reference the same struct twice. If it doesn't copy, can I duplicate one in some other way?
Also - does passing a struct into a as a parameter like
and altering it in there keep referencing the original struct?
Basic stuff really, It might have been said somewhere but I couldn't find it. Main issue is the duplication.
Thanks
So, if I do
var1 = {}
var2 = var1
Does that copy or just reference the same struct twice. If it doesn't copy, can I duplicate one in some other way?
Also - does passing a struct into a as a parameter like
function function(struct) {}
and altering it in there keep referencing the original struct?
Basic stuff really, It might have been said somewhere but I couldn't find it. Main issue is the duplication.
Thanks