Shotgun line trace not spreading

a for loop runs a number of times from StartIndex to LastIndex the Blueprint For loops are inclusive so bounds checks need to be understood. (if you put in max of 5 but the body is accessing like an Array with only 4 things then you will get an out of bounds exception at number 4 because C++ Arrays are Zero for initial index)

1 Like