This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Kismet\KismetSystemLibrary.h" | |
// Set what actors to seek out from it's collision channel | |
TArray<TEnumAsByte<EObjectTypeQuery>> traceObjectTypes; | |
traceObjectTypes.Add(UEngineTypes::ConvertToObjectType(ECollisionChannel::ECC_Pawn)); | |
// Ignore any specific actors | |
TArray<AActor*> ignoreActors; | |
// Ignore self or remove this line to not ignore any | |
ignoreActors.Init(this, 1); |