Okay, hopefully I can explain this clearly. I'm controlling a bunch of AI characters using a for loop. Basically:
For P = 10 to 29
AI code blah blah
Next P
P represents all the AI characters (10 to 29). Pretty straightforward, right? I have a function for distance and I want the AI to recognise if they're near another AI character so it should be something like "if distance(P,P)<10".
Obviously, this does not work because every AI character will treat its
own ID as a different ID and think it's near another. I tried creating another for loop within (For E = 10 to 29) and having if E<>P before if distance(E,P)<10 but this doesn't work either.
So, question is...How can I isolate a specific ID within the for loop? (If that makes sense) I'm scratching my head trying to figure out what I'm doing wrong and I've looked around the forum but can't seem to find anything. Educate me please.