No dude, the need for recursion doesn't apply to FindChild. As I said, it works fine outside the loop, and even works the first time through the loop, it's on the second pass that it fails. Specifically, I put a FindChild for testing immediately before For, and then again immediately after, and throw in a Stop so that I can watch the variables changing.
This would obviously mean that I must be doing something to the parent entity somewhere in the body of the loop, but I cannot find it. I must be going blind.
EDIT: Whew, okay after venting a bit I was able to look at my code with calmer eyes, and saw the problem. Within the loop, I was using EntityParent to reassign the child. When I commented out that line, FindChild works fine. Now to figure out how to accomplish what I was trying to do with EntityParent, but in a different way...
This would obviously mean that I must be doing something to the parent entity somewhere in the body of the loop, but I cannot find it. I must be going blind.
EDIT: Whew, okay after venting a bit I was able to look at my code with calmer eyes, and saw the problem. Within the loop, I was using EntityParent to reassign the child. When I commented out that line, FindChild works fine. Now to figure out how to accomplish what I was trying to do with EntityParent, but in a different way...