Looping through entities

Blitz3D Forums/Blitz3D Programming/Looping through entities

You can avoid all the data structures like this:
Graphics3D 640,480
SetBuffer BackBuffer()

world = CreatePivot()
For f = 1 To 20
	temp = CreateCube(world)
	NameEntity temp,"Cube"+f
Next

If CountChildren(world)>0
	For childcnt = 1 To CountChildren(world)
		DebugLog EntityName(GetChild(world,childcnt))
	Next
EndIf

Stop
End

But sometimes you will need a type/array.