Legacy GM [SOLVED] Does each instance get it's own list?

Greetings,

The following code is called from say, "object A". There are other objects, and they are children of the object, "obj_parent".

Does the code below create a ds_list inside each child object? Or, as I would like to have happen, is only ONE ds_list created inside the calling instance, "object A"?

Code:
with (obj_parent)
    {
        if (owner_id == other.id)
        {
            ds_list_add(other.some_list, id);
        }   
    }
 

Simon Gust

Member
No, only one list and it will be the one in objectA. It´s not possible to create lists out of nowhere as you didn´t write ds_list_create() anywhere except assuming in objectA.
 
Top