Placing Entities Efficiently

Blitz3D Forums/Blitz3D Beginners Area/Placing Entities Efficiently

Wow, I'm afraid its a little to advanced for me yet. I have an idea that could work for me, but don't know how to set it up or if its even possible

this code is from inside my countchildren/getchild loop:
; spawn_npc_dev
If EntityName(spawn_npc_dev) = "classname=spawn_npc_dev" Then

	npc_dev=LoadAnimMesh("content\models\dev_man\dev_man.b3d")	
   	PositionEntity npc_dev,EntityX(spawn_npc_dev),EntityY(spawn_npc_dev),EntityZ(spawn_npc_dev)
End If


This will spawn a model at each the child, no matter how many there are with the same name. It is found by "EntityName(spawn_npc_dev) = "classname=spawn_npc_dev"


It is found by the full name of its child. Now I would like to find it ONLY through a certain part of its name :
EntityName(spawn_npc_dev) = "classname=<b>spawn_npc_dev</b>"


I need only need to know how to find the children by a part in its name, so I can extract other parts of its name for other purposes.

I thought of searching through the string delivered by the entityname, but cant figure out how. I tried fooling with the Mid$ but I had little success...


Thanks!