1
Fork 0

Check the home keyword in BGSActorCellEvent

ae-1.6.629
Eddoursul 2 years ago
parent 1ca711df36
commit 5fa614bf94
  1. BIN
      SKSE/Plugins/ArtifactTracker.dll
  2. 3
      Source/ArtifactTrackerDLL/src/ArtifactTracker.cpp

Binary file not shown.

@ -184,8 +184,9 @@ namespace ArtifactTracker
void OnCellEnter(RE::FormID a_formID)
{
RE::TESObjectCELL* cell = RE::TESForm::LookupByID<RE::TESObjectCELL>(a_formID);
RE::BGSLocation* location = cell ? cell->GetLocation() : nullptr;
if (!cell || !cell->IsInteriorCell()) {
if (!cell || !cell->IsInteriorCell() || !location || !location->HasKeyword(g_homeKeyword)) {
if (IsHome()) {
RE::ScriptEventSourceHolder::GetSingleton()->RemoveEventSink<RE::TESCellFullyLoadedEvent>(EventListener::GetSingleton());
ToggleHomeMode(nullptr);

Loading…
Cancel
Save