Files
Reboot-Launcher/dependencies/reboot/Project Reboot 3.0/Pawn.h
Alessandro Autiero b41e22adeb <feat: New project structure>
<feat: New release>
2023-09-02 15:34:15 +02: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);
}
};