Hey all. I have my real time battle system setup. I must be missing something. I have bears in the forest that attack the player when they see him. Problem is if the player is behind them and attacks them first, the bear attacks facing away from the player on its first attack, then turns around toward the player for the rest of the battle. How can I make it so the bear turns toward the player first, before it attacks and stays facing the player? Oh, and I can't get sounds to play on the bear, either. If I try to set a sound in the bear combatant, it plays when the player attacks, not the bear. Thanks!!:)
If you trying to play sound effects when hitting a target, that's a different story.
The sound playing depends on which sound type you're setting it up for (and when it is used). E.g. if it's set up for a damage sound type, it'd be played when the bear receives damage (and it's set up in the ability/item that plays the sound).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
For RT sounds I have an empty prefab with only a sound effect spawn on the combatants attack event, then delete itself right after the sound plays. (I prefer to set it on the prefab as an auto-play event Delete after X seconds so you don't have to have to rely on the battle event doing it.) I prefer this as it lets you easily control the volume, pan, 3d/2d effect, and location of the sound upon spawning.
Also you can set collider effects too for damage zones and damage dealers so you can spawn blood or whatever else upon collision with the target. For instance I had a robot spawn sparks every time the damage zone was activated.