Hey Guys.
Well im doin the Course from Tom Looman and trying to get the Goals in a RPG like Game.
In my Case i have a simple Actor that should make some Sound (for testing purposes every Tick)
so the AI will look at the Actor if it heares it.
Well for the Character a simple NoiseEmitter->MakeNoise(this, 1.0f, GetActorLocation)) was everything i needed to get it done. The Character is working properly but it seems not to working on an simple Actor this Way and i dont know whats the Reason behind this …
The Actor is not spawning like a Projectile its already in the Scene placed on an Platform. I wanna drop it just behind the AI and it should realize the Sound but it doesnt.
I cant believe such a simple thing like MakeNoise is able to gimme 1 full day of trying pretty much everything …
Setup:
Char works:
Actor not:
// Called every frame
void ANoiseMaker_Pawn::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
NoiseEmitterComp->MakeNoise(this, 1.0f, GetActorLocation());
}
I have tried MakeNoise(1.0f, GetInstigator()) too and did SetInstigator() with the same Result, nothing happens…
Im pretty lost now cause it seems i dont understand something important here.