Child Object

Blitz3D Forums/Blitz3D Programming/Child Object

Just a quick question . Is it possible to find a child in a mesh (ie arm) and effect the alpha of that object?

Im at work right now and cant test the theory.

Any takers?

myChild = FindChild(myParent, "ChildName")
myOtherChild = GetChild(myParent, ChildIndex)

EntityAlpha myChild, 0.2
EntityAlpha myOtherChild, 0.4

No offense but I don't think this one belongs in 'Advanced 3D' ;)

Morduun,
*wince* ouch. Okay okay. Wrong thread..lol
I appreciate the answer though.

Remember, you'll need to do a recursive search to garuntee its found. Not all children are on the root node.

And make shure you will not try to use EntityAlpha on a bone - that can be a child of a mesh too.

haha, yeah and dont hide bones.. you get strange effects happening :)