I finally did it. The audio is played via "SimVar=Ground Velocity". But it's not what I want.
So, for example, a model has 3 animations: walking, running, barking. I would like to assign an audio to each animation.
Can you link an audio to an animation and if so, what should the XML section in the soundai.xml and in the model.xml look like?
This is my code:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<SoundInfo Version="0.1">
<WwisePackages>
<MainPackage Name="edgt_zombie"/>
<MainPackage Name="edgt_jogger"/>
</WwisePackages>
<SimVarSounds>
<Sound WwiseData="true" WwiseEvent="zombie_moan" FadeOutType="2" FadeOutTime="1" SimVar="GROUND VELOCITY" Units="METERS PER SECOND" Index="0" ViewPoint="Both">
<Range LowerBound="1"/>
<Range UpperBound="5"/>
</Sound>
</SimVarSounds>
</SoundInfo>