I've been having trouble with the TraceActors loop not coming up with a successful trace.
Here is the weird part. I can be pointing at the 'triggervolume' I'm trying to find and the trace will be a success. A few seconds later the trace fails and I haven't done anything. Just to make I dumped all of the input variables to TraceActors and none of them change between finding my volume and not finding it.
Is there an issue with TraceActors I don't know about?
Code:
foreach TraceActors (class'Actor', TraceActor, HitLocation, HitNormal, CameraEnd, CameraLocation)
{
if ((Pawn != None && TraceActor == Pawn) || (TraceActor.IsA('Volume') && !TraceActor.IsA('TriggerVolume')))
continue;
else if(TraceActor.IsA('TriggerVolume')) {
bTriggerVolume = true;
break;
} else {
break;
}
}
Here is the weird part. I can be pointing at the 'triggervolume' I'm trying to find and the trace will be a success. A few seconds later the trace fails and I haven't done anything. Just to make I dumped all of the input variables to TraceActors and none of them change between finding my volume and not finding it.
Is there an issue with TraceActors I don't know about?