Jump to content

wannabe0523

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by wannabe0523

  1. I think what they are asking for is when the player shoots their gun, NPC's react to the shot, whether that is fight OR flight. Currently, NPC's only react if the shot hits a surface or an NPC. I am also trying to figure this out. I'm documenting a lot of my work here:
  2. I found this post: So I tried the function GetActorValue, with "Aggression" as an argument. This returns a value from 0-3. It seems like each NPC has an aggression level that makes sense, but it doesn't solve the issue I'm having because NCR troopers and Powder Gangers both have the same aggression level, even though Powder Gangers shoot at me on sight, and NCR troopers don't, so somewhere else Powder Gangers consider the player an enemy. Edit: I found this function: GetReputation. It takes two arguments: Reputation, and a 1 or 0 (which determines if it returns fame or infamy -- each faction has both), and it returns the player's reputation with the faction. Reputation: https://geckwiki.com/index.php?title=Reputation This works, except I can't find any functions to get an actor's faction's Reputation, to use as an argument to the GetReputation function. Does anyone know of a function like that? Edit: I've found a convoluted way: For each actor, get the actors factions, using GetFactions, and save them in an array, and loop through that array. For each faction, get the faction reputation type using GetFactionReputationType, then I used the value returned as an argument to GetReputation. This compiles, but seemingly doesn't work..
  3. 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?
  4. 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?
×
×
  • Create New...