Jump to content

How is it determined if an NPC attacks a player?


wannabe0523

Recommended Posts

I've tried a bunch of different functions in GECK to determine if an NPC is friendly or an enemy -- in other words, does the NPC try to attack the player on sight.

I've tested NPC dispositions in Primm using the getdisposition console command, but all NPC's had the same disposition of 35.

Next I tested faction relations using the GetFactionRelation function. However, it would never return a 1, indicating that none of the NPC's were enemies of the player, which was clearly not true since the powder gangers shoot at me every time they see me.

I tried GetActorFactionPlayerEnemy to see if the player has been flagged as an enemy by one of the actor's factions, but it never returned 1 (true).

So my question is, is there a function that returns true, or some number, that represents their hostility towards a player?

Edited by wannabe0523
grammar
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...