Skip to content

Creature Pathing issues

arvutarvut Member Posts: 15
I've noticed that some large creatures often get stuck in tilesets such as the Underdark tileset. I'd like to implement a fix for this where the creature jumps/teleports to the PC if it is unable to move to PC. This would be added to the creatures OnAttack or OnHeartbeat scripts which uses custom AI.

Any idea what functions might work for this? I've looked at GetDistanceToObject, which calculates the distance, but it doesn't take into account if the creature can move that distance or not. Perhaps a check for checking whenever distance is reduced or not would work.

Open to suggestions, I'm sure this has been done before, where dragons use the Fly/Land animation to reach PC and spiders/bebiliths use the same disappear/appear animation with JumpToLocation in the mix.
Sign In or Register to comment.