Jump to content

Navmesh checking in Papyrus


Recommended Posts

Is there a programmatic way to determine if an actor is on a navmesh? I've developed a teleport spell/script that moves the caster to a random location in the current cell. It works pretty well, but despite some sanity checking still occasionally deposits the caster in undesirable locations. I'd like to add an additional check to determine if a throwaway actor has been moved to a location on a navmesh, and if not, try another random location. Does anyone know a function or actor property that would tell me this?

Link to comment
Share on other sites

Sorry to be the one to tell you this but you are hosed

Just checked ot make sure there wasn't some sane way around it like checking to see if the actor is falling or standing etc.. got nothing for ya man navmesh is kind of seperate'ish to the programming so you are hosed

Damn. Thanks for checking. I guess I'll have to try another avenue. The main problem I have is that in city cells (Markarth, Whiterun, etc.) the caster can end up outside the city walls in the fake landscape. I guess I could require Open Cities Skyrim, but that would greatly reduce my potential audience.

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

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