What parameters control when an NPC turns to face nearby Pla

Post » Thu Jun 14, 2012 4:37 am

I'm looking at some NPC scripts that use AITravel and this "turn to face player" stuff seems to interrupt the AItravel. I thought it was controlled by the AI "Hello" value of the NPC, but even at 0, I think the NPC turns to face the player (Player has high Personality at the moment).

I've looked around and didn't find a quick answer, so if anyone knows the details, please enlighten me.

Muchas gracias.
User avatar
Spaceman
 
Posts: 3429
Joined: Wed May 23, 2007 10:09 am

Post » Wed Jun 13, 2012 9:06 pm

I am not sure, but maybe fMaxHeadTrackDistance influences also this, you could try setting it to 0 and see what happens.
Not so useful anyway, it is a GMST so can't be changed on the fly from standard scripting. In theory, MGE XE should have a way to change GMSTs on the fly, but I was unable to make it work.
User avatar
Bethany Short
 
Posts: 3450
Joined: Fri Jul 14, 2006 11:47 am

Post » Thu Jun 14, 2012 12:12 pm

I think the head track is for how close you have to be for the head alone to turn towards things of interest nearby.

I think the NPCs AI "Hello" value is the big contributor to whether the NPC turns their body towards the player, but I just don't know if that is the sole determinant.
User avatar
Unstoppable Judge
 
Posts: 3337
Joined: Sat Jul 29, 2006 11:22 pm

Post » Wed Jun 13, 2012 11:59 pm

Got another GMST to try, iGreetDistanceMultiplier, from MSFD (also a http://planetelderscrolls.gamespy.com/View.php?view=Mods.Detail&id=6748 using this) . It should not be important if hello is 0, but with Morrowind you can never say never...
Changing the Hello setting
Get/Mod/SetHello
Changing this changes it for ALL references of the Actor. Some info from the helpfile: Hello
equates to the distance at which the Actor will stop, face the PC and say hello. The setting
(which defaults to 30) is multiplied by the game setting, iGreetDistanceMultiplier, which
defaults to 7. Thus, a setting of 30 yields a hello distance of 210 (just under 10 feet).
P.S. not important, but in my Morrowind.esm iGreetDistanceMultiplier defaults to 6, maybe a MSFD typo or a different Morrowind version.
User avatar
Bitter End
 
Posts: 3418
Joined: Fri Sep 08, 2006 11:40 am

Post » Wed Jun 13, 2012 11:14 pm

I'm not sure either, but the above sounds like your best bet. I'm also experimenting with fDispPersonalityBase, fDispPersonalityMult, fGreetDistanceReset, and fVoiceIdleOdds.
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am


Return to III - Morrowind