[C++] How to implement BeginPlay on a gamemode.
Hi! I am trying to do something fairly simple: get my gamemode to "do stuff" on BeginPlay(). The thing is, I have failed to find any help on implementing it on anything but Actor & Pawn. Obviously simple "virtual void BeginPlay() override;" in the header file of GameMode won't work, so what will?
Thanks in advance!
asked Jun 24 '15 at 08:23 PM in C++ Programming
Fixed already on the forums. I was getting error about unresolved externals, only to find out it is because you actually need to implement them in .cpp too :P
answered Jun 25 '15 at 08:14 AM
Did you remember to setup Default GameMode?
Also remember Super::BeginPlay()
In the Editor:
Edit (Top left corner) -> Project Settings... -> Maps & Modes (under Project)
Under Default Modes setup:
Global Default Server Game Mode (click on down arrow)
answered Jun 25 '15 at 03:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here