void GetObject(string name, ?&out)/ETHEntity

Retrieves the @reference to an AngelScript object which has been stored in the entity custom data map.

{
    MyObject obj;
    obj.foo = 10;
    entity.SetObject("obj", @obj);
}

{
    MyObject@ obj;
    entity.GetObject("obj", @obj);
    print(obj.foo);
}

Output:

10

Object types must match.