selecting an object within a fastloop
I am trying to use a distance check within a fastloop as a means of selecting an object in a qualifier group. Basically, I do a distance check, then store the qualifier object's fixed value to a variable. Then I compare the variable to the fixed value of the qualifier object. The problem is that even though I have 2 different objects (belonging to the same qualifier) I can only seem to get one of them to make the distance check true. I am using the Adv. Direction object to do the chjeck. Any idea why this wouldn't work?
Re: selecting an object within a fastloop
You need to spread id's to the objects and compare the id with the loopindex. You can check out my Fastloop tutorial to see examples of how it is done.
Re: selecting an object within a fastloop
So, I do use fastloops (and I actually have read your tutorial :) ) but my problem is that I need to be able to retain the selection for other code down the line. The way my code works, I figure out which object the player has just grabbed (which is done through a distance check within a fastloop) and then store the object's fixed value within the player so all future actions by the player will affect that specific object only. I hope I'm making sense here.
The problem seems to be that the distance check only works for one of the objects and not the other. I can't see why that would happen in my code, except that I am using qualifiers in the distance check.
Any ideas?
PS. And can someone explain why it is a bad idea to use fixed values to select a specific enemy?