Jump to content

prevent certain NPCs from entering tunnel?


davidlallen

Recommended Posts

I have a set of rooms and hallways which are occupied by robots. Due to a hacker, there is a hallway which the robots have been programmed to overlook. So, the player and companions can enter it, but the robots should not be able to. I cannot figure out a way to achieve this effect. I have thought about:

 

* Putting a trigger in the hallway, and teleporting the robots out when they enter. But if the AI wants to send them down there (for example when fleeing) then they will loop, by running in there, teleporting back out, running in again, etc.

 

* Breaking the navmesh. Then the robots can't enter but neither can the companions.

 

* Breaking the navmesh and adding a teleport for the companions based on a "player.getpos x < 1000" test to see if the player has entered the tunnel. But if the companions were a little distance away, then the teleport will be visible instead of having them walk/run over

 

Can anybody suggest a good way to get this effect?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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