Well, thats one reason to use more than one TraceToActor command.Let's assume pawn A stands still and pawn B stands 10 meters away from it. A is B's enemy and vice versa. Now... if pawn C, that is A's ally, is standing exactly between them, it prevents pawn A from "seeing" pawn B.
Here's how it would break down...
1. Use a naming convention for your pawns, for example, say you have two groups of pawns, Red and Blue. Name all the Reds "Red01","Red02", and so on. Use the same method for the Blues.
2. In your script you have something like...
//A Red Pawn
MYVAR1=TraceToActor(bone,x,y,z);
if(MYVAR1=false)
{
//Nothing is there, so react accordingly
}
MYVAR2=LeftCopy(MYVAR1,3);
if(MYVAR2="Red")
{
//The Pawn is a friend, so react accordingly
}
if(MYVAR2="Blu")
{
//The Pawn is an Enemy
SetTarget(StringCopy(MYVAR1));
//Do other mean stuff
}
You get the idea?