Syntax: Select all
ent.set_parent(parententity.pointer)
this is how i would think to remove it, but doesnt work:
Syntax: Select all
ent.set_parent(Entity(0).pointer)
error is:
Code: Select all
Exception ignored in: <bound method __del__ of <entities.helpers.EntityMemFuncWrapper object at 0x2E838BC0>>
TypeError: No registered converter was able to extract a C++ pointer to type class CPointer from this Python object of type EntityMemFuncWrapper
my previous working method was this:
Syntax: Select all
parententity.targetname = "name"
ent.call_input("SetParent",parententity.targetname)
ent.call_input("SetParent","")