Using item from an array only once

“Why the Button press? Should it not just go through the array and spawn one NPC per name? Mostly curious here. The issue could be the button press.”

It is purely just for testing purpose and will be removed from final version.

“also, getting the random index should really be length -1 which is probably your real issue?
An array starts at 0, so 0B1 is common and is the Droid you are looking for to boot.”

I’ve been using array length -1 as a max value for random integer in range all the time, but had been advised by other user here on forums to use RandomInteger instead. However, both methods works fine for me and none of them returning values out of array length.

I’ve managed to fix it, it was actually caused by one node not being connected to the “name” input on CharacterInfo structure inside another function that modifies same structure file. Now it works without any issues.