Script-based pathing check?

Post » Tue May 24, 2016 9:50 pm

Is this possible? I looked over the actor script functions and I'm thinking no, but wondering if anyone has any creative ideas.



There is a hard encounter I'm designing for my dungeon where it's pretty easy for the player to get outside of where the enemy can path to the player. I'm wanting to make it so if the player is unreachable by the enemy, after a certain amount of time the enemy will flee (requiring the player to chase it down if they choose to re-engage). This will help prevent cheesing the enemy with ranged attacks.



LoS checks don't really work since I'm more concerned about the enemy being able to path to the player rather than see the player.

User avatar
Josh Trembly
 
Posts: 3381
Joined: Fri Nov 02, 2007 9:25 am

Post » Tue May 24, 2016 12:11 pm

If the out-of-bounds area is well-defined, a trigger could be added that would register for update and toggle a conditional flag. The flag could be added to a combat override AI package used by the enemy. The flag would only be reset once the PC leaves the trigger.

User avatar
GabiiE Liiziiouz
 
Posts: 3360
Joined: Mon Jan 22, 2007 3:20 am

Post » Tue May 24, 2016 3:04 pm

http://www.creationkit.com/index.php?title=PathToReference_-_Actor ?

User avatar
louise tagg
 
Posts: 3394
Joined: Sun Aug 06, 2006 8:32 am


Return to V - Skyrim