Jump to content

Function to know NPC's faction?


AbbaddoN33

Recommended Posts

Hi! There is a function/form to know the faction of one reference?

 

I want to use "sendassaultalarm" to make the first npc near (getfirstref) attack to me, but i need a faction parameter. Thanks!

Link to comment
Share on other sites

I'm not aware of one. The victim could potentially be in a large number of factions, so even if a function like that existed it would have to return a list of factions. This is a klunky workaround, but you could use GetInFaction in a script with an if and as many elseifs as you need to cover victim's likely factions.

if victimREF.GetInFaction faction1
 sendassaultalarm victimREF faction1
elseif victimREF.GetInFaction faction2
 sendassaultalarm victimREF faction2
...
endif
Link to comment
Share on other sites

That sounds very good... I'll try that. Thank you very much! :)
Link to comment
Share on other sites

Thanks! But i'm playing fallout 3 (fose) :/

Unfortunately FOSE hasn't gotten any updates for several years, and doesn't support arrays.
The impression I get from the wiki is that you don't need to know the faction of the NPC. Just the actor REF. Have you tried testing that?
SendAssaultAlarm ActoREF
The player will have a relationship to the actor's faction (neutral/friend/ally - though this might not matter anyway), but if the faction 'tracks crime', then other NPC's in the same faction should react accordingly to the major crime of assault.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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