Like this:
The code to kill the actor after 2 seconds is inside the actor itself. That way, you don’t have to manage it…