Detect distance

Post » Fri May 04, 2012 1:50 am

Hi all!
I found that all NPC on Dren Plantation attack Hides-His-Foot when i try to rescue him. That normally...but the distance NPC detecting him is too big!
What GMST is responsible for detect and attack distance?
Actually Dren servant near dock detect Hides-His-Foot...that looks very strange.

I think guards needs detect parameters like Oblivion.
User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am

Post » Fri May 04, 2012 12:34 pm

All of that should be scripted on actors via functions such as; GetDeadCount, GetJournalIndex, GetDedected, StartCombat, etc. You don't have to mess with GMST's to correct this, just the vanilla scripts attached to the actors.

"GetDedetected" being the main culprit for the omnipotent AI.
User avatar
Céline Rémy
 
Posts: 3443
Joined: Sat Apr 07, 2007 12:45 am

Post » Thu May 03, 2012 9:13 pm

Yes, I know. But where is distance of detecting? In exe?
User avatar
Nikki Hype
 
Posts: 3429
Joined: Mon Jan 01, 2007 12:38 pm

Post » Fri May 04, 2012 10:40 am

Yes, I know. But where is distance of detecting? In exe?

Yes it's in the source code. The script language is not SDK , it is interpreted and dependent on the engine.

If you want to use an actual distance value in detection then as I said modify the existing scripts with GetDistance. In this case you define the parameters.
User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm


Return to III - Morrowind