# Event BeginPlay not firing

**URL:** <https://forums.unrealengine.com/t/event-beginplay-not-firing/452111>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, CPP, Blueprint, question\
**Created:** [July 12, 2019, 3:18am UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111 "2019-07-12T03:18:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 3:18am UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/1 "2019-07-12T03:18:37Z")

</div>

Ok So I have racked my brains all night with this problem. I cant get Event BeginPlay to fire no matter what I do. I have GameModeBase and GameStateBase calling Super::BeginPlay() and Super::StartPlay(). I also have added a Parent: BeginPlay node in the blueprint editor with no success. Can anyone help me?

Thanks,

---

<div class="post-metadata">

**Author:** ![MonsOlympus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monsolympus/32/619062_2.png) [@MonsOlympus](https://forums.unrealengine.com/u/MonsOlympus)\
**Post date:** [July 12, 2019, 6:45am UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/2 "2019-07-12T06:45:18Z")

</div>

I know this sounds abit simple but did you check to see that youre actually using that GameMode when your running the game?

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 1:19pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/3 "2019-07-12T13:19:13Z")

</div>

Yes. However, it is my own custom gamemode.

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 1:26pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/4 "2019-07-12T13:26:24Z")

</div>

Each Level can override which GameMode it is using so either ensure that it is overriding with your Blueprint version of the GameMode or it is not overridden but set in “Maps & Modes” in the Project Settings.

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 1:32pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/5 "2019-07-12T13:32:35Z")

</div>

Yes its set in maps and modes and blueprint world override

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 1:58pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/6 "2019-07-12T13:58:27Z")

</div>

Make sure that if your GameMode inherits from GameMode that GameState inherits GameState and not GameStateBase. GameMode and GameState has to use the same variant.

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 2:00pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/7 "2019-07-12T14:00:22Z")

</div>

My GameModeBase inherits from GameModeBase and my GameStateBse Inherits from GameStateBase

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 2:33pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/8 "2019-07-12T14:33:27Z")

</div>

Okay and you are sure there is no run-time errors? Perhaps post a picture of what you got.

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 2:36pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/9 "2019-07-12T14:36:57Z")

</div>

![282254-springarmset.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/b/ebb1fdd1bf16f6f773683d57532dfa186d663fa5.jpeg)

this is what i’m trying to do. set a gameinstance vafriable

---

<div class="post-metadata">

**Author:** ![w2lf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@w2lf](https://forums.unrealengine.com/u/w2lf)\
**Post date:** [July 12, 2019, 3:06pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/10 "2019-07-12T15:06:49Z")

</div>

![282249-mygamestatebase.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/3/fb3c03bdf1362f0823475f62a8b9f94aa1e7589b.png)

 ![282250-mapsmodes.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/0/78073635386e8eaeb98f2ff8f30acf136ef47f5d.png)

I tried it in a new project 4.22 and it all works.  
Try print node before Event beginplay in GameStateBase, play and see if you get a message on the screen. (Also remove the override in WorldSettings.) If not then you didn’t set your project settings right. Check that everything is set right. If it still doesn’t work make a screenshot of GameStateBase and the Project settings so we are sure it’s not a problem on your end. (Take the screen-shots exactly like I did in the pictures and also the WorldSettings GameModeOverride)

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 3:13pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/11 "2019-07-12T15:13:10Z")

</div>

![282255-mapsandmodes.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/7/507e408ff0027c297c18ea33b05d973eecd2d199.jpeg)

Ok so I’ve promoted MyGameStateBase to a blueprint but it still doesnt print anything and i’m sure i have everything setup properly could it be something in my c++ code then?

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 3:38pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/12 "2019-07-12T15:38:05Z")

</div>

If it is based on your own C++ GameModeBase and or GameStateBase then yes. Check if HandleBeginPlay is getting called in your GameState. If you are overriding HandleBeginPlay you have to call the Super class.

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 3:41pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/13 "2019-07-12T15:41:28Z")

</div>

My GameStateBase.h:

```
UCLASS()
class CUBEFACTORY_API AMyGameStateBase : public AGameStateBase
{
	GENERATED_BODY()
		virtual void HandleBeginPlay() override;
};

```

My GameStateBase.cpp

```
void AMyGameStateBase::HandleBeginPlay() {
	Super::HandleBeginPlay();
}

```

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 3:45pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/14 "2019-07-12T15:45:14Z")

</div>

If you aren’t doing anything with the override you could also just delete the function so it isn’t overridden.  
How about your constructor? can you show the code for that? please use the code tags so it is easier to read.

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [July 12, 2019, 3:53pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/15 "2019-07-12T15:53:36Z")

</div>

HandleBeginPlay is public btw (see line 5)

```
 UCLASS()
 class CUBEFACTORY_API AMyGameStateBase : public AGameStateBase
 {
     GENERATED_BODY()
public:
         virtual void HandleBeginPlay() override;
 };
```

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 12, 2019, 4:09pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/16 "2019-07-12T16:09:26Z")

</div>

You 100% you calling `Super::BeginPlay()` on BeginPlay override?

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 4:09pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/17 "2019-07-12T16:09:32Z")

</div>

Ok So I removed the override because it wasnt being used. There is no constructor I dont know if that makes a difference but anyway

---

<div class="post-metadata">

**Author:** ![AceHigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Post date:** [July 12, 2019, 4:10pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/18 "2019-07-12T16:10:49Z")

</div>

Yes I am sure.

---

<div class="post-metadata">

**Author:** ![MonsOlympus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monsolympus/32/619062_2.png) [@MonsOlympus](https://forums.unrealengine.com/u/MonsOlympus)\
**Post date:** [July 18, 2019, 2:08pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/19 "2019-07-18T14:08:23Z")

</div>

Only other thing I can think of is you might have overridden tick and not called super, if thats even a thing.

---

<div class="post-metadata">

**Author:** ![AweiGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AweiGames](https://forums.unrealengine.com/u/AweiGames)\
**Post date:** [August 12, 2024, 11:14pm UTC](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111/20 "2024-08-12T23:14:57Z")

</div>

I’ve had this issue twice。after I replace gamemodebase with gamemode,everything is good

[Next page](https://forums.unrealengine.com/t/event-beginplay-not-firing/452111.md?page=2)
