mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
16 lines
381 B
C++
16 lines
381 B
C++
#include "PlayerState.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
int& APlayerState::GetPlayerID()
|
|
{
|
|
static auto PlayerIDOffset = FindOffsetStruct("/Script/Engine.PlayerState", "PlayerID", false);
|
|
|
|
if (PlayerIDOffset == 0)
|
|
{
|
|
static auto PlayerIdOffset = FindOffsetStruct("/Script/Engine.PlayerState", "PlayerId", false);
|
|
return Get<int>(PlayerIdOffset);
|
|
}
|
|
|
|
return Get<int>(PlayerIDOffset);
|
|
} |