oksy so I am creating a script to shuffle close targets
here is my code
however I get an error
"Argument is out of range. Parameter name: index"
The problem is that you never actually assign anything to 'targets'! Which means that index '0' will be out of range, because targets is empty. You need to have a line in there somewhere which goes like-
before you try to access any of its members.
Also, what is this line doing in your FindEnemiesInSphere function?
That really shouldn't be there. I don't think you understood what the point of that method was when I wrote it for you earlier.
answered Nov 09 '11 at 01:47 AM