EDIT: A solution is posted below, however it might not indicate the exact cause, so if anybody knows something more please share, although problem is effectively solved
On construction script of an actor, I have a loop that creates combination of letters for the number of some other actors in the world (there happens to be 174 in this example)
I have a counter that breaks the loop when it reaches this number. That all happens as expected, but afterwards the whole thing fires again… and the results are that are strange:
Function that runs on construction script, part 1:
Part 2: Incrementing through the alphabet. When the counter exceeds the same number as actors array, break the first loop and note that we fire a “Completed” print log.
Full:
Output:
Goes like this all the way to 174…
Then what is happening here???
It goes on like this many times… why is the entire function firing multiple times, and why are the concurrent times that it fires producing nonsense?
A couple other details:
- There is only ONE actor in the level which fires this function.
- To make the construction script fire for this test, I am just pressing Compile once.
- It is a single level, no streaming or composition.