mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
artificial intelligence
proper *****, work on ai, organize some things
This commit is contained in:
26
Project Reboot 3.0/BP_IslandScripting.cpp
Normal file
26
Project Reboot 3.0/BP_IslandScripting.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "BP_IslandScripting.h"
|
||||
|
||||
void ABP_IslandScripting_C::Initialize()
|
||||
{
|
||||
static auto UpdateMapOffset = GetOffset("UpdateMap", false);
|
||||
|
||||
if (UpdateMapOffset != -1)
|
||||
{
|
||||
Get<bool>(UpdateMapOffset) = true;
|
||||
this->OnRep_UpdateMap();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
// This spawns the beam.
|
||||
|
||||
this->IsDeimosActive() = true;
|
||||
this->OnRep_IsDeimosActive();
|
||||
*/
|
||||
}
|
||||
|
||||
ABP_IslandScripting_C* ABP_IslandScripting_C::GetIslandScripting()
|
||||
{
|
||||
auto AllIslandScriptings = UGameplayStatics::GetAllActorsOfClass(GetWorld(), StaticClass());
|
||||
return AllIslandScriptings.Num() > 0 ? (ABP_IslandScripting_C*)AllIslandScriptings.at(0) : nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user