mcu8_SeqAct_MusicParameterFloat

#Kismet

This kismet node allows you to set the float music parameter instead of the integer.

mcu8_SeqAct_MusicParameterFloat.uc

[RAW] [Download]

class mcu8_SeqAct_MusicParameterFloat extends SequenceAction;
 
var(MusicNode) Name MusicParameterName;
var(MusicNode) float MusicParameterValue;
 
defaultproperties
{
    ObjName="Music Parameter Float"
    ObjCategory="Sound"
    HandlerName="SeqActSetMusicParameter"
 
    MusicParameterName = "Parameter";
    MusicParameterValue = 1.f;
}
 
 
event Activated()
{
    if (`MusicManager != None && `MusicManager.MusicTreeInstance != None) 
        `MusicManager.MusicTreeInstance.SetParameterFloat(MusicParameterName, MusicParameterValue);
}