Hello,
I’m experiencing an issue with my AI not detecting noise stimuli from my third-person character player. I’ve conducted some tests and discovered a peculiar behavior: the “Report Noise Event” node works as expected when placed inside the “Begin Play” event, but it fails to function when placed inside a key press event (e.g., the “F” key).
Here are the details of my setup:
- Working Setup:
- Event Begin Play
- Get Actor Location
- Report Noise Event
- Print String
- Delay
- Non-Working Setup:
- Key Pressed (F key)
- Get Actor Location
- Report Noise Event
- Print String
Attached is an image showing both setups for reference:
In the working setup, the AI successfully hears the noise event and reacts accordingly. However, in the non-working setup, the AI does not respond to the noise event triggered by the key press.
I’ve double-checked the connections and logic, and everything appears to be correct. Is this a bug
(I’m using Unreal Engine 5.3), or am I missing something in my implementation? Any insights or suggestions would be greatly appreciated!
Thank you for your help!
This is the player pawn:
This is the AI controller: