Files
Project-Reboot-3.0/Project Reboot 3.0/Pawn.h
2023-03-11 09:24:00 -05:00

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);
}
};