Compare commits
No commits in common. "16a5b98945de792c1060e54836aefe93e6bd40fa" and "141ac232f0371e48fc602dd165f4183b4d77ca78" have entirely different histories.
16a5b98945
...
141ac232f0
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
|
|
||||||
[/Script/EngineSettings.GameMapsSettings]
|
[/Script/EngineSettings.GameMapsSettings]
|
||||||
GameDefaultMap=/Game/Levels/Level.Level
|
GameDefaultMap=/Engine/Maps/Templates/OpenWorld
|
||||||
GlobalDefaultGameMode=/Game/Gamemode/BP_DefaultGamemode.BP_DefaultGamemode_C
|
GlobalDefaultGameMode=/Game/Gamemode/BP_DefaultGamemode.BP_DefaultGamemode_C
|
||||||
GameInstanceClass=/Script/vampires.VampireGameInstance
|
GameInstanceClass=/Script/vampires.VampireGameInstance
|
||||||
EditorStartupMap=/Game/Levels/Level.Level
|
|
||||||
|
|
||||||
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
|
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
|
||||||
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12
|
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12
|
||||||
|
|
BIN
Content/Enemy/BB_Enemy.uasset (Stored with Git LFS)
BIN
Content/Enemy/BB_Enemy.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/BP_AIController.uasset (Stored with Git LFS)
BIN
Content/Enemy/BP_AIController.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/BP_EnemyCharacter.uasset (Stored with Git LFS)
BIN
Content/Enemy/BP_EnemyCharacter.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/BT_Enemy.uasset (Stored with Git LFS)
BIN
Content/Enemy/BT_Enemy.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Enemy/M_Test.uasset (Stored with Git LFS)
BIN
Content/Enemy/M_Test.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Input/IMC_Player.uasset (Stored with Git LFS)
BIN
Content/Input/IMC_Player.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Level.umap (Stored with Git LFS)
BIN
Content/Levels/Level.umap (Stored with Git LFS)
Binary file not shown.
|
@ -22,13 +22,6 @@ void AVampireAIController::BeginPlay()
|
||||||
void AVampireAIController::Tick(float DeltaTime)
|
void AVampireAIController::Tick(float DeltaTime)
|
||||||
{
|
{
|
||||||
Super::Tick(DeltaTime);
|
Super::Tick(DeltaTime);
|
||||||
|
|
||||||
if (AVampireCharacter* Player = Cast<AVampireCharacter>(UGameplayStatics::GetPlayerCharacter(GetWorld(), 0)))
|
|
||||||
{
|
|
||||||
Blackboard->SetValueAsObject("Player", Player);
|
|
||||||
auto location = Player->GetActorLocation();
|
|
||||||
Blackboard->SetValueAsVector("PlayerLocation", location);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AVampireAIController::OnPossess(APawn* InPawn)
|
void AVampireAIController::OnPossess(APawn* InPawn)
|
||||||
|
@ -45,6 +38,7 @@ void AVampireAIController::OnPossess(APawn* InPawn)
|
||||||
Blackboard->InitializeBlackboard(*bt->BlackboardAsset);
|
Blackboard->InitializeBlackboard(*bt->BlackboardAsset);
|
||||||
BehaviorTree->StartTree(*bt);
|
BehaviorTree->StartTree(*bt);
|
||||||
Blackboard->SetValueAsObject("SelfActor", EnemyCharacter);
|
Blackboard->SetValueAsObject("SelfActor", EnemyCharacter);
|
||||||
|
Blackboard->SetValueAsObject("Player", UGameplayStatics::GetPlayerCharacter(GetWorld(), 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue