mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
30 lines
619 B
C++
30 lines
619 B
C++
#include "Actor.h"
|
|
|
|
#include "Transform.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
FTransform AActor::GetTransform()
|
|
{
|
|
FTransform Ret;
|
|
static auto fn = FindObject<UFunction>(L"/Script/Engine.Actor.GetTransform");
|
|
this->ProcessEvent(fn, &Ret);
|
|
return Ret;
|
|
}
|
|
|
|
AActor* AActor::GetOwner()
|
|
{
|
|
static auto GetOwnerFunction = FindObject<UFunction>("/Script/Engine.Actor.GetOwner");
|
|
|
|
AActor* Owner = nullptr;
|
|
this->ProcessEvent(GetOwnerFunction, &Owner);
|
|
|
|
return Owner;
|
|
}
|
|
|
|
void AActor::K2_DestroyActor()
|
|
{
|
|
static auto DestroyActorFn = FindObject<UFunction>("/Script/Engine.Actor.K2_DestroyActor");
|
|
|
|
this->ProcessEvent(DestroyActorFn);
|
|
} |