Hi,
This is from a pluralsight tutorial I am trying to figure out:
I have been struggling with this for some weeks, would like to check if is there something I am missing.
I want to get total of all pickable objects for each pickable type in a game level.
I have a base blueprint class for pickable objects and three types of pickable instances Blue, Pink and Key.
Defined a gunction to Get total Number of Pickables with variables TotalBluePickups, TotalKeyPickups, TotalPinkPickups.

In the construction Script I get totals or all types of Pickables

In Event Graph of ThirPersonGameMode I added the test:

I already checked all intances of the pickable blueprints in the level, are indeed blueprints child of pickup base class. But somehow the construction script is not properly updating the variable after running GetAllActorsOfClass function.
Any ideas of what might be happening?
Thanks!
This is from a pluralsight tutorial I am trying to figure out:
I have been struggling with this for some weeks, would like to check if is there something I am missing.
I want to get total of all pickable objects for each pickable type in a game level.
I have a base blueprint class for pickable objects and three types of pickable instances Blue, Pink and Key.
Defined a gunction to Get total Number of Pickables with variables TotalBluePickups, TotalKeyPickups, TotalPinkPickups.
In the construction Script I get totals or all types of Pickables
In Event Graph of ThirPersonGameMode I added the test:
I already checked all intances of the pickable blueprints in the level, are indeed blueprints child of pickup base class. But somehow the construction script is not properly updating the variable after running GetAllActorsOfClass function.
Any ideas of what might be happening?
Thanks!
Comment