r/forgescripting • u/0mni42 • Nov 19 '22
For Each Object--how does it work?
I'm trying to make a series of objects all move at the same time, but when I use the [For Each Object] node, it makes them move one at a time, according to their order in the object list. How can I make them move simultaneously, or at least reduce the amount of time between them? Am I using the wrong node for this kind of thing?
Honestly, I just don't quite grasp the logic behind some of these nodes yet; I just have no idea what some pins are supposed to connect to. [For Each Object]'s last pin, for instance: "current iteration." What can that connect to? What's it for?
View all comments
Show parent comment
3
u/0mni42 Nov 19 '22
Yeah, that's what I'm trying to avoid. In short, I'm making a door with eight "teeth" that dilate open; making a separate script for each tooth is a pain and I'm looking for a way to do it more efficiently. There must be a way to apply a script to objects in a list simultaneously; it would be a baffling thing to not include.