x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

All the variables are set properly, the Delay Time variable is >0.

Any idea how to make it work? Thanks

Product Version: UE 4.17
Tags:
more ▼

asked Sep 01 '17 at 02:28 AM in Blueprint Scripting

avatar image

JN
6 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

Or

2) Create a custom event that calls the function library function directly. Use SetTimerByEvent to call this custom event as a delegate.

See screenshots.

For more information on Function Libraries: https://docs.unrealengine.com/latest/INT/Programming/BlueprintFunctionLibraries/

more ▼

answered Sep 02 '17 at 10:56 AM

avatar image

Pittnee
71 1 4 4

avatar image JN Sep 03 '17 at 09:11 AM

Thank you for pointing out the fact that a function library is not an object in the game. That was the culprit :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question