In AbilitySystemComponent_Abilities.cpp, the check for the client being on a different section on line 3059 checks that the RepNextSectionID is not the current section. One would assume this is because if the client has simply progressed to the next section, there is no requirement to update the montage; however, it also prevents the new section being played when the new section also loops back to the prior section.
The subsequent position update checks that the current section is the correct section (AbilitySystemComponent_Abilities.cpp:3074), which it is not, since the section was not updated on line 3063.
This results in the non-authoritative clients “ignoring” the montage section change. Adding a blank section to the end of the montage on the final frame and having the second stage route through that works around the issue.
1. Setup a pawn with a Gameplay Ability Component.
2. Create triggers that will function for networked play
3. Create a montage with 2 animations
a. For both animations create an anim section
b. Have the first loop on itself
c. Have the second set such that the first is the next section after it
4. Create an ability with two PlayMontageAndWaits
a. On execute, play the first section.
b. After a delay – to simulate the event occurring – play the second
5. Set PIE to 3 players
6. Set Play Net Mode to Play as Listen Server
7. Unset Launch Separate Server
8. Set Run Under One Process
If the ability comes from a client in a separate window, the PIE session will see the montage, as will the authoritative client. The other non-PIE client will not.
If the ability comes from the PIE client, neither separate window clients will see it.
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Why does my fortnite game crash when i try to launch it
Why is the ProceduralMeshComponent not drawing a face?
Why can't you find the FNonAbandonableTask class in the UE Editor's new C++ class option?
How do I change the rotation matrix of the camera by the direction of the vector?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-201802 in the post.
0 |
Component | UE - Gameplay - Gameplay Ability System |
---|---|
Affects Versions | 5.2, 5.3 |
Target Fix | 5.6 |
Created | Dec 4, 2023 |
---|---|
Updated | Sep 30, 2024 |