mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
zone fixed
This commit is contained in:
17
Project Reboot 3.0/GameState.cpp
Normal file
17
Project Reboot 3.0/GameState.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "GameState.h"
|
||||
|
||||
#include "GameplayStatics.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
float AGameState::GetServerWorldTimeSeconds()
|
||||
{
|
||||
UWorld* World = GetWorld();
|
||||
if (World)
|
||||
{
|
||||
static auto ServerWorldTimeSecondsDeltaOffset = this->GetOffset("ServerWorldTimeSecondsDelta");
|
||||
return UGameplayStatics::GetTimeSeconds(World) + Get<float>(ServerWorldTimeSecondsDeltaOffset);
|
||||
}
|
||||
|
||||
return 0.f;
|
||||
}
|
||||
Reference in New Issue
Block a user