Check the home keyword in BGSActorCellEvent
This commit is contained in:
parent
1ca711df36
commit
5fa614bf94
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…
Reference in New Issue
Block a user