Make Noise & AIPerception

Hello everyone! I need Help
I want that Actor object is Emitter of Noise, which is detected AIPerception Component.
Instead of MakeNoise() function is the member method of Actor Class, Noise emitter can’t be Actor object. it’s NoiseInstigator object, which is Pawn class.
Therefor In AIPerception Hearing Event is coming this NoiseInstigator object not Actual Actor object.

it’s strange, why Actor class has MakeNoise() function if it can not use it?

how can I fix it?

To note, you can use it but its API that was designed as the creator designed it to be used. You cannot just want it to make mushrooms appear on the screen by default design :slight_smile:

It notes “Senders of MakeNoise should have an Instigator if they are not pawns, or pass a NoiseInstigator.”

If that doesn’t tickle your fancy then you need to find something else, write your own custom code, or forget doing it. The choice is yours. Epic won’t bend their API’s to your needs.

And result?
have you any Idea how I can I fix it?
bro, you wrote so many word and neither help me :slight_smile:

I fully explain to you what you need to do :wink:

Here is an example of a blueprint version maybe of what you’re looking for. https://answers.unrealengine.com/questions/136574/emitting-noise-from-any-actor.html

But, I will not do the work for you, to be clear. If I can find something that helps you I will link it. That’s it. If by help you mean that you want it done for you, I don’t do things that way.

I know about this post, but I have better way to do it.
I use PawnSensingComponent but such case I have two components for perception: PawnSensingComponent and AIPerceptionComponent. that’s why I don’t like this way.

I wrote this post to find best way and best way would be if I stay only in AIPerceptionComponent scope but as it seems it impossible.

The best way might be to grab the UE4 engine source code and create your own custom code to do it.

You might be able to find another way without doing so but it might also include custom code that you have to write.

The only way anyone is probably going to find a better way for you is if someone here sees this and has actually done it or does it for you and finds it. This is no different from you doing it yourself except someone else does it for you.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.