Custom Dragon Behavior
This article is a direct rip from "Creating a Dragon Follower"

Dragon AI is a bit more tricky to conquer than regular NPC AI. You have to account for their abilities to fly, shout, perch on structures and landing on ground with or without navmesh.

For vanilla hostile dragons they have a linked patrol ref by default. If you set the dragon to do its regular orbit behavior target "on self" you'll find that it will fly off in circles to infinity. The dragons are delicate with AI pathfinding while flying. If there is no set linked ref or specific area with a set height it will go AWOL.

To bypass this weird quirk with dragons I've made a new package that you can apply to their default AI. 

-Hover and Perch Behavior
This is a custom package I made from a Hover template and edited to use a sit procedure for 40 seconds.


-Replace the Location "PlayerRef" back to linked ref. Uncheck repeat when complete. Setting the "Perch time" to 0 will make it sit for the whole duration that the package is in effect.

-For example if you wanted your dragon to react to weather, you can add the conditions for the weather and now the dragon will try to find the nearest perch spot or it will just land on the ground if it can't.


-Following on Ground conditions
This is just a follow package with conditions for following while grounded.


 
-Default Orbit behavior
A simple orbit package that targets the player.




-Combat Override Package
If you have a large sized follower like a dragon you need to increase the combat radius especially while it is flying around you in orbit.

Article information

Added on

Edited on

Written by

SpiderAkira

0 comments