How can adjust the lifetime of the object?

Ex: i have a ball but i want it will be disappear after 10s

You can start a timer at beginplay of your spawned actor. After time is expired, call destroy for the actor. I’ll create some example to show what I mean…

This is the code in the Blueprint for your Ball actor:

The spawn can be simply done for example from within your player character for quick testing as shown here (K does spawn the actor)

EDIT: yeah, the solution by EveryNone is the simpler one - I just overlooked the Initial Life Span that you can set with your actor…

4 Likes

And you can intercept the final event with:

image

4 Likes