Prototype/Source/Prototype/Private/Task_VictimScan.cpp
/* Adds victim to list of located victims and sets a waypoint to the location if the victim is new.
*	
*	@param vic The victim.
*/
Adds victim to list of located victims and sets a waypoint to the location if the victim is new.
Adds victim to list of located victims and sets a waypoint to the location if the victim is new .
void AUSARAgent::ReceiveVictimData(AVictimActor* vic)
{
	if (locatedVictims.Find(vic) == INDEX_NONE) {
		locatedVictims.Add(vic);
		flockWPs.Insert(vic->GetActorLocation(), 0);
	}
}
void AUSARAgent :: ReceiveVictimData ( AVictimActor * vic ) { if ( locatedVictims . Find ( vic ) == INDEX_NONE ) { locatedVictims . Add ( vic ) ; flockWPs . Insert ( vic -> GetActorLocation ( ) , 0 ) ; } }
Adds victim to list of located victims and sets a waypoint to the location if the victim is new.
Adds victim to list of located victims and sets a waypoint to the location if the victim is new .