C++ trace ignore

How do i make a line trace to ignore static mesh actors?

This should do the trick:

#include "Kismet/KismetSystemLibrary.h"
//....
TArray<TEnumAsByte<EObjectTypeQuery>> TraceObjects;
TraceObjects.Add(UEngineTypes::ConvertToObjectType(ECC_WorldDynamic));//add your object types here.
if(UKismetSystemLibrary::LineTraceSingleForObjects(this,TraceStart,TraceEnd,TraceObjects,false, TArray<AActor*>(), EDrawDebugTrace::ForDuration, FirstHit, true))
{

}

It worked perfectly thank you!