parenting entities

Blitz3D Forums/Blitz3D Programming/parenting entities

D4NM4N(Posted 2005) [#1]
if i attach one entity to another using entityparent, why doesnt it show up using countchildren??


GfK(Posted 2005) [#2]
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



D4NM4N(Posted 2005) [#3]
ok, solved that then (*ahem) i was looking at the 1 expecting 2! what a dumbass