I think there’s a bug in UE5 (specifically with Game Feature Plugins) where server functions are being called out of order.
In the example above, I created a component in a game feature that gives an ability to the player and binds the ability to the player’s input component. This code works in a standard blueprint (part of the core game), but doesn’t when in a game feature plugin. Using the debugger, I found that SetInputBinding
was being called first and GiveAbility
was called last (which explains why it wasn’t working).
If you add a delay of 0
seconds, however, the code works as expected!
This doesn’t seem right at all which is why I’m thinking this is a bug. Can anyone provide some insight into this issue or provide a workout other than this stupid 0 second delay?