Listen for Attribute Changes
Note: You can do this from the C++, as we've done in the Adding New Attributes section.
- We can also do this in Blueprint to make it easier.
- Open any blueprint, for example we open the Character Blueprint.
When you type something like Listen for, you will see many things like Listen for Attribute Changed, and so on. You could use the others later, for now we've just focused on Attribute. - Add below nodes to make your MoveSpeed attributes linked to actual character walk speed.
Note: This is not the right implementation, especially in Multiplayer Mode, this is just for showing the MoveSpeed really changed and it changes could be listened in Blueprint. Don't used any important setter or calculation from Attribute Changed, consider to used PostGameplayEffectExecute function in AGASAttributeSet.
No Comments