Only game where it does not happen is zero K because they play the unit sounds via Lua.
Was that done because it allowed more features or as workaround because the engines unit reply system does not work so good?
Things I need help with:
-playing sounds should cut off if a new one starts.
-If you select more than one units, the "select" sound is not played at all, even if the units are of the same type.
-The "ok" plays on every order, like just pressing stop or changing move state. Is it possible to only play on move or attack?
-Is there a tag to give units an "engine sound" that loops as long as they are moving? (or on other events)
Atm in the unitdef I just do:
Code: Select all
sounds = {
select = {
"unitreply/yea.ogg",
},
ok = {
"unitreply/battle.ogg",
},
},