No announcement yet.

Pass event as function parameter?

  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    If your event doesn't need parameters, you can call it by name. Make a String parameter that will be the name of the function and an object parameter which will be the blueprint that owns the event. Then call Set Timer by Function Name. You can't pass parameters this way, but it's the best way to create a function caller without calling a specific event from an object reference.

    If you're comfortable with C++, double-click the Set Timer node and check out what they did to create that Event pin.

    Leave a comment:

  • started a topic Pass event as function parameter?

    Pass event as function parameter?


    I want to write my own "Timer by Event"-function where the user can input the event like here:

    Click image for larger version

Name:	Event.png
Views:	82
Size:	22.7 KB
ID:	1774612

    Is this possible with blueprints? If not, how to make it with C++?

    Thank you,