mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Some Event Fixes, 18.10 Crash fix, random crash after a few minutes for s17+
This commit is contained in:
@@ -205,6 +205,28 @@ bool AActor::IsPendingKillPending()
|
||||
return IsActorBeingDestroyed() || !IsValidChecked(this);
|
||||
}
|
||||
|
||||
UObject* AActor::AddComponentByClass(UClass* Class)
|
||||
{
|
||||
struct
|
||||
{
|
||||
UClass* Class;
|
||||
bool bManualAttachment;
|
||||
FTransform RelativeTransform;
|
||||
bool bDeferredFinish;
|
||||
UObject* ReturnValue;
|
||||
} params;
|
||||
params.Class = Class;
|
||||
params.bManualAttachment = false;
|
||||
params.RelativeTransform = FTransform();
|
||||
params.bDeferredFinish = true;
|
||||
|
||||
static UFunction* AddComp = FindObject<UFunction>("/Script/Engine.Actor:AddComponentByClass");
|
||||
|
||||
this->ProcessEvent(AddComp, ¶ms);
|
||||
|
||||
return params.ReturnValue;
|
||||
}
|
||||
|
||||
float& AActor::GetNetUpdateFrequency()
|
||||
{
|
||||
static auto NetUpdateFrequencyOffset = GetOffset("NetUpdateFrequency");
|
||||
|
||||
Reference in New Issue
Block a user