mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
test
This commit is contained in:
@@ -26,7 +26,15 @@ void AFortPickup::SpawnMovementComponent()
|
||||
static auto ProjectileMovementComponentClass = FindObject<UClass>("/Script/Engine.ProjectileMovementComponent"); // UFortProjectileMovementComponent
|
||||
|
||||
static auto MovementComponentOffset = this->GetOffset("MovementComponent");
|
||||
this->Get(MovementComponentOffset) = UGameplayStatics::SpawnObject(ProjectileMovementComponentClass, this);
|
||||
|
||||
if (auto NewComponent = UGameplayStatics::SpawnObject(ProjectileMovementComponentClass, this))
|
||||
{
|
||||
this->Get(MovementComponentOffset) = NewComponent;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
AFortPickup* AFortPickup::SpawnPickup(PickupCreateData& PickupData)
|
||||
|
||||
Reference in New Issue
Block a user