This is the structure:
The Code is running inside a component of Vault:
auto owner = GetOwner(); Print(owner); auto parent = owner.GetParent(); Print(parent);
Output:
SCRIPT : GenericEntity owner = GenericEntity<0x0000021321813C30> SCRIPT : IEntity parent = NULL
We can see that the component can get its owner, which is the GenericEntity 'Vault'.
I confirmed this by printing the name of the Entity.
Now with GetParent() we should get a IEntity , which is Bank in this case but we get null.
Is this my fault or is it now working correctly?
Thanks in Advance!