ZeDuval
Member
Hey guys. Second time I would really need this. I can't possibly come up with anything new I could try.
If I do this:
Is it somehow possible to get the id of the instance that "owns" the variable some_variable if I only have 'instance_id_ref.some_variable'. Any way to "split" this again to get the value before the dot?
edit: In my obj.Method asset I use a technique where I actually store the value of the variable AND the id of the instance using an array, but this won't work with the stuff I'm working on right now.
edit2: Ok, I will probably get it to work somehow using the array approach, but I really want to know this. I hope someone knows!
If I do this:
Code:
instance_id_ref = instance_create(0,0,obj_whatever);
instance_id_ref.some_variable = 123;
edit: In my obj.Method asset I use a technique where I actually store the value of the variable AND the id of the instance using an array, but this won't work with the stuff I'm working on right now.
edit2: Ok, I will probably get it to work somehow using the array approach, but I really want to know this. I hope someone knows!
Last edited: