mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
19 lines
365 B
C++
19 lines
365 B
C++
#pragma once
|
|
|
|
#include "Actor.h"
|
|
|
|
class APawn : public AActor
|
|
{
|
|
public:
|
|
UObject* GetPlayerState()
|
|
{
|
|
static auto PlayerStateOffset = GetOffset("PlayerState");
|
|
return Get(PlayerStateOffset);
|
|
}
|
|
|
|
class APlayerController* GetController()
|
|
{
|
|
static auto ControllerOffset = GetOffset("Controller");
|
|
return Get<class APlayerController*>(ControllerOffset);
|
|
}
|
|
}; |