[Go back to index]

Asobo\Generic\AnimationTriggers.xml

Source XML
<ModelBehaviors> <!-- ####################################################################### --> <!-- #################### Animation triggers Templates ##################### --> <!-- ####################################################################### --> <!-- One effect event on animation. Required parameter: ANIM_NAME EVENT_NAME --> <Template Name = "ASOBO_GT_AnimTriggers_EffectEvent"> <DefaultTemplateParameters> <NORMALIZED_TIME>0</NORMALIZED_TIME> <DIRECTION>Both</DIRECTION> <ACTION>Play</ACTION> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME#" Direction="#DIRECTION#"> <EffectEvent Name="#EVENT_NAME#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template> <!-- ####################################################################### --> <!-- ################## Animation Triggers Sound Templates ################# --> <!-- ####################################################################### --> <!-- One sound event on animation. Required parameter: ANIM_NAME WWISE_EVENT --> <Template Name = "ASOBO_GT_AnimTriggers_SoundEvent"> <DefaultTemplateParameters> <WWISE_EVENT>button_switch_generic</WWISE_EVENT> <NORMALIZED_TIME>0.1</NORMALIZED_TIME> <DIRECTION>Both</DIRECTION> <ACTION>Play</ACTION> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_NORMALIZED_TIME"> <NORMALIZED_TIME>#AUDIO_NORMALIZED_TIME#</NORMALIZED_TIME> </Condition> <Condition Check="AUDIO_DIRECTION"> <DIRECTION>#AUDIO_DIRECTION#</DIRECTION> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME#" Direction="#DIRECTION#"> <SoundEvent WwiseEvent="#WWISE_EVENT#" Action="#ACTION#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template> <Template Name = "ASOBO_GT_AnimTriggers_SoundEvents_Same"> <DefaultTemplateParameters> <WWISE_EVENT>button_switch_generic</WWISE_EVENT> <ACTION>Play</ACTION> <COUNT>2</COUNT> <AUDIO_DIRECTION>Both</AUDIO_DIRECTION> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_DIRECTION"> <DIRECTION>#AUDIO_DIRECTION#</DIRECTION> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger Count="#COUNT#" Direction="#DIRECTION#"> <SoundEvent WwiseEvent="#WWISE_EVENT#" Action="#ACTION#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template> <!-- Two same sound events on animation. Required parameter: ANIM_NAME WWISE_EVENT --> <Template Name = "ASOBO_GT_AnimTriggers_2SoundEvents"> <DefaultTemplateParameters> <WWISE_EVENT_1>button_switch_generic</WWISE_EVENT_1> <ACTION_1>Play</ACTION_1> <NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1> <DIRECTION_1>Forward</DIRECTION_1> <WWISE_EVENT_2>button_switch_generic</WWISE_EVENT_2> <ACTION_2>Play</ACTION_2> <NORMALIZED_TIME_2>0.9</NORMALIZED_TIME_2> <DIRECTION_2>Backward</DIRECTION_2> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_NORMALIZED_TIME_1"> <NORMALIZED_TIME_1>#AUDIO_NORMALIZED_TIME_1#</NORMALIZED_TIME_1> </Condition> <Condition Check="AUDIO_NORMALIZED_TIME_2"> <NORMALIZED_TIME_2>#AUDIO_NORMALIZED_TIME_2#</NORMALIZED_TIME_2> </Condition> <Condition Check="AUDIO_DIRECTION_1"> <DIRECTION_1>#AUDIO_DIRECTION_1#</DIRECTION_1> </Condition> <Condition Check="AUDIO_DIRECTION_2"> <DIRECTION_2>#AUDIO_DIRECTION_2#</DIRECTION_2> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME_1#" Direction="#DIRECTION_1#"> <SoundEvent WwiseEvent="#WWISE_EVENT_1#" Action="#ACTION_1#"/> </EventTrigger> <EventTrigger NormalizedTime="#NORMALIZED_TIME_2#" Direction="#DIRECTION_2#"> <SoundEvent WwiseEvent="#WWISE_EVENT_2#" Action="#ACTION_2#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template> </ModelBehaviors>

Templates

Template list
  • ASOBO_GT_AnimTriggers_EffectEvent

    Definition from XML
    <Template Name="ASOBO_GT_AnimTriggers_EffectEvent"> <DefaultTemplateParameters> <NORMALIZED_TIME>0</NORMALIZED_TIME> <DIRECTION>Both</DIRECTION> <ACTION>Play</ACTION> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME#" Direction="#DIRECTION#"> <EffectEvent Name="#EVENT_NAME#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • NORMALIZED_TIME
      • DIRECTION
      • ACTION

    Condition: Valid(DISABLE_ANIMATION)

    • Case: False

      Parameters read:

      • ANIM_NAME
      • NORMALIZED_TIME
      • DIRECTION
      • EVENT_NAME
  • ASOBO_GT_AnimTriggers_SoundEvent

    Definition from XML
    <Template Name="ASOBO_GT_AnimTriggers_SoundEvent"> <DefaultTemplateParameters> <WWISE_EVENT>button_switch_generic</WWISE_EVENT> <NORMALIZED_TIME>0.1</NORMALIZED_TIME> <DIRECTION>Both</DIRECTION> <ACTION>Play</ACTION> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_NORMALIZED_TIME"> <NORMALIZED_TIME>#AUDIO_NORMALIZED_TIME#</NORMALIZED_TIME> </Condition> <Condition Check="AUDIO_DIRECTION"> <DIRECTION>#AUDIO_DIRECTION#</DIRECTION> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME#" Direction="#DIRECTION#"> <SoundEvent WwiseEvent="#WWISE_EVENT#" Action="#ACTION#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • WWISE_EVENT
      • NORMALIZED_TIME
      • DIRECTION
      • ACTION
    • Override

      Condition: Check(AUDIO_NORMALIZED_TIME)

      • Case: True

        Parameters set:

        • NORMALIZED_TIME (using AUDIO_NORMALIZED_TIME)

      Condition: Check(AUDIO_DIRECTION)

      • Case: True

        Parameters set:

        • DIRECTION (using AUDIO_DIRECTION)

    Condition: Valid(DISABLE_ANIMATION)

    • Case: False

      Parameters read:

      • ANIM_NAME
      • NORMALIZED_TIME
      • DIRECTION
      • WWISE_EVENT
      • ACTION
  • ASOBO_GT_AnimTriggers_SoundEvents_Same

    Definition from XML
    <Template Name="ASOBO_GT_AnimTriggers_SoundEvents_Same"> <DefaultTemplateParameters> <WWISE_EVENT>button_switch_generic</WWISE_EVENT> <ACTION>Play</ACTION> <COUNT>2</COUNT> <AUDIO_DIRECTION>Both</AUDIO_DIRECTION> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_DIRECTION"> <DIRECTION>#AUDIO_DIRECTION#</DIRECTION> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger Count="#COUNT#" Direction="#DIRECTION#"> <SoundEvent WwiseEvent="#WWISE_EVENT#" Action="#ACTION#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • WWISE_EVENT
      • ACTION
      • COUNT
      • AUDIO_DIRECTION
    • Override

      Condition: Check(AUDIO_DIRECTION)

      • Case: True

        Parameters set:

        • DIRECTION (using AUDIO_DIRECTION)

    Condition: Valid(DISABLE_ANIMATION)

    • Case: False

      Parameters read:

      • ANIM_NAME
      • COUNT
      • DIRECTION
      • WWISE_EVENT
      • ACTION
  • ASOBO_GT_AnimTriggers_2SoundEvents

    Definition from XML
    <Template Name="ASOBO_GT_AnimTriggers_2SoundEvents"> <DefaultTemplateParameters> <WWISE_EVENT_1>button_switch_generic</WWISE_EVENT_1> <ACTION_1>Play</ACTION_1> <NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1> <DIRECTION_1>Forward</DIRECTION_1> <WWISE_EVENT_2>button_switch_generic</WWISE_EVENT_2> <ACTION_2>Play</ACTION_2> <NORMALIZED_TIME_2>0.9</NORMALIZED_TIME_2> <DIRECTION_2>Backward</DIRECTION_2> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Check="AUDIO_NORMALIZED_TIME_1"> <NORMALIZED_TIME_1>#AUDIO_NORMALIZED_TIME_1#</NORMALIZED_TIME_1> </Condition> <Condition Check="AUDIO_NORMALIZED_TIME_2"> <NORMALIZED_TIME_2>#AUDIO_NORMALIZED_TIME_2#</NORMALIZED_TIME_2> </Condition> <Condition Check="AUDIO_DIRECTION_1"> <DIRECTION_1>#AUDIO_DIRECTION_1#</DIRECTION_1> </Condition> <Condition Check="AUDIO_DIRECTION_2"> <DIRECTION_2>#AUDIO_DIRECTION_2#</DIRECTION_2> </Condition> </OverrideTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <AnimationTriggers Animation="#ANIM_NAME#"> <EventTrigger NormalizedTime="#NORMALIZED_TIME_1#" Direction="#DIRECTION_1#"> <SoundEvent WwiseEvent="#WWISE_EVENT_1#" Action="#ACTION_1#"/> </EventTrigger> <EventTrigger NormalizedTime="#NORMALIZED_TIME_2#" Direction="#DIRECTION_2#"> <SoundEvent WwiseEvent="#WWISE_EVENT_2#" Action="#ACTION_2#"/> </EventTrigger> </AnimationTriggers> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • WWISE_EVENT_1
      • ACTION_1
      • NORMALIZED_TIME_1
      • DIRECTION_1
      • WWISE_EVENT_2
      • ACTION_2
      • NORMALIZED_TIME_2
      • DIRECTION_2
    • Override

      Condition: Check(AUDIO_NORMALIZED_TIME_1)

      • Case: True

        Parameters set:

        • NORMALIZED_TIME_1 (using AUDIO_NORMALIZED_TIME_1)

      Condition: Check(AUDIO_NORMALIZED_TIME_2)

      • Case: True

        Parameters set:

        • NORMALIZED_TIME_2 (using AUDIO_NORMALIZED_TIME_2)

      Condition: Check(AUDIO_DIRECTION_1)

      • Case: True

        Parameters set:

        • DIRECTION_1 (using AUDIO_DIRECTION_1)

      Condition: Check(AUDIO_DIRECTION_2)

      • Case: True

        Parameters set:

        • DIRECTION_2 (using AUDIO_DIRECTION_2)

    Condition: Valid(DISABLE_ANIMATION)

    • Case: False

      Parameters read:

      • ANIM_NAME
      • NORMALIZED_TIME_1
      • DIRECTION_1
      • WWISE_EVENT_1
      • ACTION_1
      • NORMALIZED_TIME_2
      • DIRECTION_2
      • WWISE_EVENT_2
      • ACTION_2