Child Object

Blitz3D Forums/Blitz3D Programming/Child Object

LostCargo(Posted 2003) [#1]
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?


morduun(Posted 2003) [#2]
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' ;)


LostCargo(Posted 2003) [#3]
Morduun,
*wince* ouch. Okay okay. Wrong thread..lol
I appreciate the answer though.


skn3(Posted 2003) [#4]
Remember, you'll need to do a recursive search to garuntee its found. Not all children are on the root node.


jfk EO-11110(Posted 2003) [#5]
And make shure you will not try to use EntityAlpha on a bone - that can be a child of a mesh too.


skn3(Posted 2003) [#6]
haha, yeah and dont hide bones.. you get strange effects happening :)