Skip to content

Commit cc2b1fe

Browse files
[UNR-2425][MS] Fixing bug with sim players not moving. (#77)
* [UNR-2425][MS] Fixing bug with sim players not moving. * [UNR-2425][MS] Improvements. The previous version broke the SimPlayers that can be spawned using editor settings. * [UNR-2425][MS] Wanted to add this to a different PR but this one does rely on it so...
1 parent 19076f0 commit cc2b1fe

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
-2.79 KB
Binary file not shown.

Game/Source/GDKShooter/Private/Controllers/GDKPlayerController.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ void AGDKPlayerController::BeginPlay()
5858

5959
void AGDKPlayerController::Tick(float DeltaTime)
6060
{
61+
Super::Tick(DeltaTime);
62+
6163
if (GetPawn())
6264
{
6365
LatestPawnYaw = GetPawn()->GetActorRotation().Yaw;

Game/Source/GDKShooter/Public/Game/Components/DeathmatchSpawnerComponent.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class GDKSHOOTER_API UDeathmatchSpawnerComponent : public UActorComponent
2626
UFUNCTION(BlueprintCallable)
2727
void DisableSpawning() { bSpawningEnabled = false; }
2828

29+
UFUNCTION(BlueprintCallable)
30+
bool IsSpawningEnabled() { return bSpawningEnabled; }
31+
2932
protected:
3033
AActor* GetSpawnPoint(APlayerController* Controller);
3134

0 commit comments

Comments
 (0)