Is there can connect fucnction to delay?

I read there is no way to put delay node in function.
so is there a way to connect its function to delay?

You can’t have delays in functions.

What are you trying to achieve?

I want to delay the destroy actor


the picture above is in event graph

Have the function call an event that uses a Delay.

So do it with a custom event :slight_smile:

Put a timer in a function and delegate:

image

image


Perfect way to leak memory. Call a delayed event instead, sorted.

We’d like need to see that because it should absolutely work.


The nodes are not connected. Calling a function does not call the nodes connected to it. It just executes the function itself.

The nodes are not connected. Calling a function does not call the nodes connected to it. It just executes the function itself.

I already try but didn’t take any effect

Why are you not using the actual damage system:

image

It makes so many things easier and more efficient! Consider it.


I already try but didn’t take any effect

Try what exactly? In the image you’re showing you are not calling an event…

Function calling a custom event with delay.

1 Like

for that I using for animation

the destroy actor when hp is low

already try but not function

here the full blueprint if confuse



this after connect the custome event (death)

Where / when are you calling Death? We can’t see it here.

1 Like

the ‘Death’ is in dummy blueprint as you can see in the video the dummy die when hp is 0

In order to execute an event you need to call it - could you show how you’re calling it. See my example here and try reproduce it:

This:

You’re still not calling the event. Have a look at my screenshot above. Take Damage function calls a Custom Event. That’s your Death.

  • remove this:

  • call Death in the function:

yes I do that.
it works!
Thank you for your help and patience

2 Likes