Unparenting

Blitz3D Forums/Blitz3D Programming/Unparenting

Ross C(Posted 2003) [#1]
hey, i've been kinda stuck with this problem. i've found a few ways around it..(well only one useful one). how do you un parent entities. the only way i've found is to copy the mesh, then free the entity. is there an easier way. i've tryed parenting the entity to it's self. no luck.

thanks in advance!


GNS(Posted 2003) [#2]
EntityParent entity, 0 should do what you want. :)


Koriolis(Posted 2003) [#3]
The answer is in the docs:
Attaches an entity to a parent. Parent may be 0, in which case the entity will have no parent.

So just use EntityParent MyEntity, 0

EDIT: crosspost with GNS.


Ross C(Posted 2003) [#4]
ok, thanks for that!!! brilliant! so stupid not to have noticed that. doh! cheers :^)