Updated TempCharacter to find AI Sphere

This commit is contained in:
MARCEL HARA 2023-02-16 15:02:58 +00:00
parent a6436c9110
commit 77c43ab3d1
5 changed files with 13 additions and 6 deletions

Binary file not shown.

Binary file not shown.

BIN
Content/Levels/Top_layer_level.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -36,6 +36,8 @@ void ATempCharacter::BeginPlay()
//MAKE SURE POST PROCESSING IS IN THE SCENE OR GAME WILL CRASH
UGameplayStatics::GetAllActorsOfClass(GetWorld(), APostProcessVolume::StaticClass(), AllActorsInScene);
PostProcessVolume = Cast<APostProcessVolume>(AllActorsInScene[0]);
UGameplayStatics::GetAllActorsWithTag(GetWorld(), Enemy, AIActors);
}
//Binds the input we made in the setup player component to the forward vector

View File

@ -89,4 +89,9 @@ public:
bool disableTab = false;
APostProcessVolume* PostProcessVolume;
TArray <AActor*> AIActors;
FName Enemy;
};