Asmodean wrote:Depth of your array has to be set as least to 1, otherwise the whole array has no size. You can see that, if you look at your array in debug.
Thank you! I was thinking the depth started at 0, so it works now! I was thinking it might be better to switch weapons by pushing the array, I think that's what it's called? Where you shift the cells in a cycle, so the game reads from the fixed cell, but the array shifts the cells around. Would that be a better way of doing it? And I should I be doing all this on every tick for performance?