This video shows you how to spawn an actor at a random location, move it to a random direction and destroy an actor after a certain period of time, in Unreal Engine 5 (UE5).
By using following function nodes.
- Set Timer by Event
- AI MoveTo
- Get Random Point in Navigable Radius
- Get Game Time Since Creation
- Destroy Actor
- Spawn AIFrom Class
- Random Point in Bounding Box
and so on.
[Chapters]
00:00 Introduction & Preparations
01:50 Character Blueprint
03:31 Animation Blueprint
10:55 Blend Space
15:15 AI Controller Blueprint (Moving Randomly and Destroying)
23:38 Tidying up a Level Blueprint (by Collapse to Function, Sequence)
25:09 Spawning an Actor at a Random Location
27:54 Test Play
![](https://i.ytimg.com/vi/lpQGu9cl6Gk/maxresdefault.jpg)