- Try to set the mode IGNORE_ME also and ENABLE_SCAN on each of the entities.
- You scan only a 2D circle around the entity that depend on the entities pan, so the target have to be on the same layer. Maybe you should increase the second value in the vector to increase the scan area.
- Then note that the scan goes to a maximum range of 100q, this could be a littel to close. Experiment with some higher values.

hm, I don't konw if this make sense but to make sure that the you pointer is filled by the scan-funktion you could add this line before c_scan()
Code:
you = NULL;


hope this helps wink