OK thanks guys. How can I look at "future" array indexes while in a loop?
For example, in the code which Kai provided, there is a loop called <loop $hitOffsets> which is happily going through each value of $hitOffsets. If I'm on the Nth time through that loop, how can I examine the (N+1) value of $hitOffsets ?
For example, in the code which Kai provided, there is a loop called <loop $hitOffsets> which is happily going through each value of $hitOffsets. If I'm on the Nth time through that loop, how can I examine the (N+1) value of $hitOffsets ?