Hi All! Need Help. As i see, this variable include array of audio params. I cant understand, from which element i can get this and change. Here is a Cast to InitialActiveSoundParams, but what element i should connect to Object Pin of Cast Node?
The class is not exposed to blueprint, you have to make your own in C++:
UCLASS()
class BATTLEHEIGHT_API UBHInitialActiveSoundParams : public UInitialActiveSoundParams
{
GENERATED_BODY()
UFUNCTION(BlueprintCallable)
void SetClan(EBattleHeightsClan Clan);
};
void UBHInitialActiveSoundParams::SetClan(EBattleHeightsClan Clan)
{
const FAudioParameter AudioParameter(FName("Clan"), static_cast<int32>(Clan));
AudioParams.Add(AudioParameter);
}
In the example below I construct an object per use, a better idea is to cache an instance and reuse-it: