In blueprints, I have an Actor component (ability_system_component
) attached to a character (player_one
). This component has a Map variable - current_abilities
.
The values of this map are structures, called “ability_spec
”.
The ability_spec structure contains many properties, including an animations Map < input_action
, <anim_montage> ability_anim_mtg
>.
I have an Ability of Object Class. This object is unable to read any value in the animations map (< input_action
, <anim_montage> ability_anim_mtg
>) of ability_spec
structure in the value of current_ability
map!
I am attempting to read the animations map through an event dispatcher
in the Ability Object. And the function in the listener gets zero key-value pairs in the animations map, inside the ability_spec
value, of ability_system_component->current_abilities
map.
But, the funny thing is, the owner character of the actor component can read those values and even play an animation montage.
Everything is implemented in blueprints, for now. Will translate this to C++ later.
What is the error here? Is it because of the Event Dispatcher?
How to resolve? Please help!
Thanks in advance.