Why GetCurrentMontage return null in the middle of a montage playback

anonymous_user_a8366a31
Fri, 17 Jul 2015 03:53:30 +0000
Character & Animation

Hi Guys,

I have a Montage for a Melee Attack with the followings sections.

StartAttack01, EndAttack01, StartAttack02, EndAttack02. In StartAttack01 i have two notifies one a few miliseconds from begining and other a few miliseconds before end. In this rage, we activate to apply damage (using Traces) and if the user clic inside this range of time, i like to set Montage_SetNextSection StartAttack02 to continue with a combo. The problem is that when the second notify is triggered Montage_GetCurrentSection return me None . . . how it is possible ? if at this moment the montage is currently playing (the notify is a few milisecond before the end of the section).

In fact i use a MontageEnded delegate with a simple print to console log, and the order of call is the following. First Notify, Second Notify and EndMontage delegate. But . . . on the Second Notify method Montage_GetCurrentSection return me null.

But . . . if i move the notify more close to the begining of the section then Montage_GetCurrentSection return the correct section name.

Anyone can help me pleaseee ?

Best regards

3 posts - 2 participants