Learn

Chapter 01 Blueprint Fundamentals

#007 Event BeginPlay

Every actor gets one moment to set itself up. When does it happen?

  • 0:39 video
  • Written lesson
  • Beginner
Video lesson: Event BeginPlay, 0:39

When BeginPlay fires

BeginPlay fires once for each actor, when that actor starts playing:

  • Actors placed in the level begin as soon as gameplay starts.
  • Actors you spawn later run BeginPlay when they spawn.

It has just one output, an execution pin, so it starts your setup chain.

Example: full health at the start

Every enemy should start with full health. From BeginPlay, Set Current Health to the value of Max Health. Every enemy runs this once, right as it enters the game.

BeginPlay vs the Construction Script

The Construction Script runs before BeginPlay, and it even runs while you are editing the level. Keep gameplay setup, like starting timers, in BeginPlay.

In short

BeginPlay: once per actor, when play begins.

Covered in this lesson

  • Event BeginPlay
  • Construction Script
  • Set

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.