|
Post by max076 on Oct 28, 2020 8:06:03 GMT
I tray AI basic scene with TPS and I cant attach noise object on Hangun. I really need to know how to do that. AI dont react on shooter sound.
PLS Help somebody.
|
|
Aaron
Junior vMember
Posts: 44
|
Post by Aaron on Oct 31, 2020 8:00:04 GMT
The way I achieved this was to:
1. Make sure your AI has a Noise Listener script attached to it.
2. Open your Handgun Prefab (or any shooter weapon.) 3. Right-Click on it and "Create Empty," and title it NoiseTrigger (or whatever you prefer.)
4. Attach the Noise Object Script to it. 5. Set your desired Min/Max Distances. (Noise Type is optional - the default "noise" works fine. Mine is specified because of other detectable sounds in my project.) 6. Back in the Handgun Inventory - Shooter Weapon Script, go to the Events. On Instantiate Projectile, add the NoiseTrigger by dragging and dropping it in, then set it to NoiseObject/TriggerNoise.
Hopefully this helps.
|
|