Set Timer by Function Name node with a function library
I want to call different functions inside my Function Library using their names provided from String. I found that the only option using the BP is to use the Set Timer by Function Name node but it doesn't work. The functions never get called.
All the variables are set properly, the Delay Time variable is >0.
Any idea how to make it work? Thanks
asked Sep 01 '17 at 02:28 AM in Blueprint Scripting
I don't believe you can call the function directly from SetTimerByFunction because this requires an object and the function library is not an object in the game. It's a library of functions that you call directly from any blueprint.
Consider doing one of the following:
1) Create a custom event or function that calls the function library function directly. Have SetTimerByFunctionName call this custom event or function.
2) Create a custom event that calls the function library function directly. Use SetTimerByEvent to call this custom event as a delegate.
For more information on Function Libraries: https://docs.unrealengine.com/latest/INT/Programming/BlueprintFunctionLibraries/
answered Sep 02 '17 at 10:56 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here