Initial Agrarian Unreal project
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Copyright Pacificao. All Rights Reserved.
|
||||
|
||||
#include "AgrarianShelterActor.h"
|
||||
#include "Components/BoxComponent.h"
|
||||
#include "Components/StaticMeshComponent.h"
|
||||
|
||||
AAgrarianShelterActor::AAgrarianShelterActor()
|
||||
{
|
||||
bReplicates = true;
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
ProtectionVolume = CreateDefaultSubobject<UBoxComponent>(TEXT("ProtectionVolume"));
|
||||
ProtectionVolume->SetupAttachment(RootComponent);
|
||||
ProtectionVolume->SetBoxExtent(FVector(250.0f, 250.0f, 180.0f));
|
||||
ProtectionVolume->SetCollisionProfileName(TEXT("OverlapAllDynamic"));
|
||||
}
|
||||
Reference in New Issue
Block a user