child name

Blitz3D Forums/Blitz3D Programming/child name

slenkar(Posted 2004) [#1]
when you parent something to an entity, what is its name for the findchild command?


puki(Posted 2004) [#2]
Isn't this whatever it is called in say the 3d model - such as 'arm', 'neck', 'right leg', 'ray gun' etc? Or have I completely goofed this up? I think you can use whatever child_name$ you like - but it isn't worth it if it isn't actually contained within the data of the entity.

I think I am right - but I'm not sure.


GfK(Posted 2004) [#3]
Its name is whatever it was before you parented it.

A couple of things to note. Firstly, FindChild() is case-sensitive. Pays to use all upper case or all lower case when naming entities, to avoid confusion later.

Also, 'primitive' entities created in code don't have a name by default, and must be named manually with NameEntity entity,name$.


slenkar(Posted 2004) [#4]
oh ok i get i now thanks