Jump to content

Detect whether player is indoors?


Recommended Posts

there's a few ways,

RedRocketTV has some ideas,

Shavkacagarikia has a few snippets

Valyn81 talks about another approach here

https://forums.nexusmods.com/index.php?/topic/6174918-help-with-understanding-the-ugrids-relation-to-interiorexterior-buffer/

 

SMB92 and fiftytifty have a few different approaches,

as does BlahblahDeeblahblah.

 

 

 

Ruadhan2300 takes a different approach,

which might be adaptable to 'deployable temporary 'any-door-to-any-where' refs,

like a tent which leads to "Tent Interior New Lands"...

sorta like a 'TARDIS Tent". hehe.

 

EDIT: @ScottyDoesKnow,

no problem hehe.

There's a few different ways to do it, so perhaps some combo is what you're looking for.

the onEvent temp buffer approach is probably the way to go if the tent is redeployable

 

 

 

hopefully, those are some ideas to detect what cell-type the tent is deployed within.

I look forward to seeing what you come up with.

Edited by montky
Link to comment
Share on other sites

you can check it with:

Game.getplayer().IsInInterior()

oops, it seems I'm bit late :D

 

This is a general way of doing the detection but not necessarily 100% accurate. There could be situations where the area is actually a worldspace not an interior cell. I can't think of one that happens in Fallout 4 but there are quite a few in Skyrim.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...