How can i loop an event?

Like i want to spawn a ball but not 1 time, i want it spawns continuous when the first ball disappear

Make an event in the ball blueprint, subscribe to this event after you spawn the ball. In the ball BP, call this event before destroying it.
Or you can just use the default OnDestroyed event, depending on how you destroy the ball.

I but i cant do it because i just newbie, can u show me the BP, thanks alot

If you destroy the ball with the Destroy node, then

If not, in the Ball BP, create an event in the Event Dispatcher, name it what you want, then you can Call this event in the Ball BP whenever you want. Binding to this event is the same as shown in the screenshot, bit with a different name.

2 Likes

oh thanks u so much <3333


oh somethings wasnt right? what should i do

You need to indicate the spawn transform. You can right click it and select split struct pins.

oh thanks, it’s works. How about the last one

If you compile it should remove the error, if not right click on the node with the error and select refresh

1 Like

Your custom event must have the same parameters that are in the OnDestroyed event.
Drag the wire from the red Event square and type “custom”, select Custom Event; it will create an event with correct parameters for you.
Alternatively, when you search for OnDestroyed, select Assign instead of Bind, and it will create an event right away.

2 Likes