parenting entities

Blitz3D Forums/Blitz3D Programming/parenting entities

if i attach one entity to another using entityparent, why doesnt it show up using countchildren??

if i attach one entity to another using entityparent, why doesnt it show up using countchildren??


Er, it does?

Graphics3D 800,600

cube1 = CreateCube()
cube2 = CreateCube()
Print CountChildren(cube1)
EntityParent cube2,cube1
Print CountChildren(cube1)
WaitKey
End


Output:

0
1


ok, solved that then (*ahem) i was looking at the 1 expecting 2! what a dumbass