AI Help

Post » Sat Feb 19, 2011 11:09 am

If I have a summoned creature out, what kind of AI package would I need on it if I wanted it to only stay within a certain radius around the calling actor? Especially in combat when it would end up running way ahead of the summoner to attack.
User avatar
Charleigh Anderson
 
Posts: 3398
Joined: Fri Feb 02, 2007 5:17 am

Post » Sat Feb 19, 2011 12:43 am

Anyone? Bueller?

I looked at the wiki on AI packages, I slapped something together with that and it didn't work out. They still run off to attack things far away.
User avatar
Danel
 
Posts: 3417
Joined: Tue Feb 27, 2007 8:35 pm

Post » Fri Feb 18, 2011 8:37 pm

To get the effect you're looking for, you'll need to duplicate the CombatStyle used by the creature (in the Misc section of the Object list in the CS), and adjust the values to suit your needs on your duplicate.

Most summons and companions will run far ahead of their "owner" to engage new targets. It's a vanilla AI "feature". If CombatStyle changes aren't enough, also consider reducing the actor's detection range or scripting the actor to only engage in combat with actors that are already in combat with the player.
User avatar
Del Arte
 
Posts: 3543
Joined: Tue Aug 01, 2006 8:40 pm

Post » Sat Feb 19, 2011 8:46 am

The summon uses a custom combat style, what should be changing with that?
User avatar
Philip Lyon
 
Posts: 3297
Joined: Tue Aug 14, 2007 6:08 am

Post » Sat Feb 19, 2011 5:23 am

Under "Ranged Combat", look at the Switch Dist and the Ranged Standoff Distance. Switch Dist determines at which distance they switch from ranged to melee or vice versa; Standoff Distance determines how far away they will try to get before they start ranged attacks (I think, someone jump in if I'm wrong).
User avatar
Jake Easom
 
Posts: 3424
Joined: Sun Jul 29, 2007 4:33 am

Post » Fri Feb 18, 2011 8:22 pm

Ahh good :) It works for the most part. I'm sure I could make it perfect with scripting and such but I'm just aiming for something as simple as this.
User avatar
BaNK.RoLL
 
Posts: 3451
Joined: Sun Nov 18, 2007 3:55 pm

Post » Fri Feb 18, 2011 11:58 pm

Excellent, glad to hear it! :goodjob:
User avatar
Cccurly
 
Posts: 3381
Joined: Mon Apr 09, 2007 8:18 pm


Return to IV - Oblivion