spectaterrrr

This commit is contained in:
Gray
2024-03-19 14:43:57 -04:00
parent 5bfe3a6179
commit 0a9191b854
7 changed files with 53 additions and 48 deletions

View File

@@ -106,6 +106,24 @@ public:
KismetSystemLibrary->ProcessEvent(fn, &UKismetSystemLibrary_ExecuteConsoleCommand_Params);
}
static FTimerHandle K2_SetTimer(UObject* Object, FString FunctionName, float Time, bool bLooping)
{
struct {
UObject* Object;
FString FunctionName;
float Time;
bool bLooping;
FTimerHandle ret;
} K2_SetTimer_Params{Object, FunctionName, Time, bLooping};
static auto KismetSystemLibrary = FindObject("/Script/Engine.Default__KismetSystemLibrary");
static auto K2_SetTimerFn = FindObject<UFunction>("/Script/Engine.KismetSystemLibrary.K2_SetTimer");
KismetSystemLibrary->ProcessEvent(K2_SetTimerFn, &K2_SetTimer_Params);
return K2_SetTimer_Params.ret;
}
static bool LineTraceSingle(UObject* WorldContextObject, FVector Start, FVector End, ETraceTypeQuery TraceChannel, bool bTraceComplex,
TArray<AActor*> ActorsToIgnore, EDrawDebugTrace DrawDebugType, bool bIgnoreSelf, FLinearColor TraceColor, FLinearColor TraceHitColor,
float DrawTime, FHitResult** OutHit)