Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
A while ago I made a thread there with the problem of my custom shooting (this is solved by now, so, don't need to check that). As I mentioned there, I made it in order to use hitboxes instead of collision... sphere? Ellipsoid? I don't know. The thing is that after I did this, I've needed to heavily edit my old spawn script. Now, there's the problem: it can't properly find the child node, which is a folder. for (var i = 0; i < ChildCount; ++i); I think it might happen because it maybe can't use folders for that, yet it shown that the number of child nodes is 17 (which is how it is supposed to be). Did I done something incorrectly? Also, if this isn't enough, there's full code, it doesn't work (for me) anyway because of this issue: /* |
||||
|
Okay, I think the reason might be in a loop construction because it works kinda fine without the for-loop (but returns only one hitbox, obviously). [Edit: nevermind, I found the issue. This is a ridiculous mistake...] for (var i = 0; i < ChildCount; ++i); //NICE |
|