On your Obstacle class blueprint, set its lifetime to 5 seconds.
Go to the blueprint class defaults,
Look in the actor category (or type lifespan on the search box)
And set it to 5.0.
Now the actor will destroy itself after 5 seconds.
On your Obstacle class blueprint, set its lifetime to 5 seconds.
Go to the blueprint class defaults,
Look in the actor category (or type lifespan on the search box)
And set it to 5.0.
Now the actor will destroy itself after 5 seconds.