|
|
@ -47,6 +47,21 @@ namespace Papyrus::PapyrusFunctions |
|
|
|
return refr ? refr.get() : nullptr; |
|
|
|
return refr ? refr.get() : nullptr; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline std::vector<RE::Actor*> GetPlayerFollowers(RE::StaticFunctionTag*) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
std::vector<RE::Actor*> result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (const auto processLists = RE::ProcessLists::GetSingleton(); processLists) { |
|
|
|
|
|
|
|
for (auto& actorHandle : processLists->highActorHandles) { |
|
|
|
|
|
|
|
if (auto actor = actorHandle.get(); actor && actor->IsPlayerTeammate() && !actor->IsDead() && !actor->IsDisabled()) { |
|
|
|
|
|
|
|
result.push_back(actor.get()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
inline void Bind(VM& a_vm) |
|
|
|
inline void Bind(VM& a_vm) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BIND(CreatePotion); |
|
|
|
BIND(CreatePotion); |
|
|
@ -55,5 +70,7 @@ namespace Papyrus::PapyrusFunctions |
|
|
|
logger::info("Registered GetNewGameCount"sv); |
|
|
|
logger::info("Registered GetNewGameCount"sv); |
|
|
|
BIND(GetCurrentContainer); |
|
|
|
BIND(GetCurrentContainer); |
|
|
|
logger::info("Registered GetCurrentContainer"sv); |
|
|
|
logger::info("Registered GetCurrentContainer"sv); |
|
|
|
|
|
|
|
BIND(GetPlayerFollowers); |
|
|
|
|
|
|
|
logger::info("Registered GetPlayerFollowers"sv); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|