AbbaddoN33 Posted January 24, 2016 Share Posted January 24, 2016 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 More sharing options...
Belthan Posted January 25, 2016 Share Posted January 25, 2016 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 More sharing options...
AbbaddoN33 Posted January 25, 2016 Author Share Posted January 25, 2016 That sounds very good... I'll try that. Thank you very much! :) Link to comment Share on other sites More sharing options...
TommInfinite Posted January 31, 2016 Share Posted January 31, 2016 Thishttp://geck.bethsoft.com/index.php?title=GetActiveFactions And you need NVSE and how to use arrays. Link to comment Share on other sites More sharing options...
AbbaddoN33 Posted January 31, 2016 Author Share Posted January 31, 2016 Thanks! But i'm playing fallout 3 (fose) :/ Link to comment Share on other sites More sharing options...
rickerhk Posted January 31, 2016 Share Posted January 31, 2016 On 1/31/2016 at 3:16 PM, AbbaddoN33 said: 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 ActoREFThe 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. http://geck.bethsoft.com/index.php?title=SendAssaultAlarm Crime: http://geck.bethsoft.com/index.php?title=Category:Crime Link to comment Share on other sites More sharing options...
Recommended Posts