findchild and collisions

Blitz3D Forums/Blitz3D Programming/findchild and collisions

Ok, thanks so much for that ... all sorted!

I ended up with :

Function initcollisions()

; Set up collisions for level

	For e = 1 To CountChildren(levelmesh)
		
		ent= GetChild(levelmesh,e)
	
				 For i=1 To CountChildren(ent)
					ww=GetChild(ent,i)
					If Instr(EntityName(ww),"part") Then
						EntityType ww,levelcol
						EntityPickMode ww,2
					Else
					
						EntityType ww,stopcol
						
					EndIf
				Next
		
	Next

	Collisions playercol,levelcol,2,2
	Collisions playercol,stopcol,2,3
	
End Function


And now all is good in the world AND the entity picking is working great :)

Nice one, jfk!