Argument out of range exeption
The first member of an array has the Index 0 the last member the quantity - 1, so the error happens if you try to access a array or List which is empty or you use a index thats is greater than the number of array members.
example you have a array with 4 values.
so you get the first with a[0] and the last with a[3], but if you try to get a[4] you get a Argument out of range exeption.
Mostly this happens if you get the number of values in a array with Length or List with Count and use it as Index but forget to subtract 1.
check OnActorDead for this.
|