Rescan the found list when followers change location
This commit is contained in:
parent
7918a84386
commit
9fe55a34b7
Binary file not shown.
@ -755,7 +755,6 @@ namespace ArtifactTracker
|
|||||||
g_iFollowerIndex = iCurrentFollowers;
|
g_iFollowerIndex = iCurrentFollowers;
|
||||||
std::thread([]() {
|
std::thread([]() {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(3000)); // wait for followers to load into the new cell
|
std::this_thread::sleep_for(std::chrono::milliseconds(3000)); // wait for followers to load into the new cell
|
||||||
RE::DebugNotification("Team changed, rescanning the found list");
|
|
||||||
RescanFoundArtifacts();
|
RescanFoundArtifacts();
|
||||||
}).detach();
|
}).detach();
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ auto EventListener::ProcessEvent(
|
|||||||
RE::BSTEventSource<RE::TESActorLocationChangeEvent>* a_eventSource)
|
RE::BSTEventSource<RE::TESActorLocationChangeEvent>* a_eventSource)
|
||||||
-> RE::BSEventNotifyControl
|
-> RE::BSEventNotifyControl
|
||||||
{
|
{
|
||||||
if (a_event->actor->IsPlayerRef()) {
|
if (a_event->actor->IsPlayerRef() || (a_event->actor->As<RE::Actor>() && a_event->actor->As<RE::Actor>()->IsPlayerTeammate())) {
|
||||||
ArtifactTracker::OnLocationChange();
|
ArtifactTracker::OnLocationChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user