GowiHasti Posted May 20, 2019 Share Posted May 20, 2019 I created a new race,and woul like to to set them up as always in the slaughterfish faction so slaughterfish never attack this race. I can make any character or NPC in a faction, but I want the whole race to be in the faction so slaughterfish do not attack the whole race. I was to make a scripted ability using addtofaction function and add the ability to the new Race, but I'm not very good with scripts so I think I messed up, but heres what I got, please help: Scriptname SESeaCreatureFactionsScript extends ObjectReference Actor property PlayerRef auto Faction property SlaughterfishFaction autoFaction property HorkerFaction autoFaction property PlayerFaction auto PlayerRef.AddToFaction(SlaughterfishFaction)PlayerFaction.SetReaction(SlaughterfishFaction, 3)PlayerRef.AddToFaction(HorkerFaction)PlayerFaction.SetReaction(HorkerFaction, 3) Link to comment Share on other sites More sharing options...
Tasheni Posted May 20, 2019 Share Posted May 20, 2019 (edited) As far as I know no script is needed at all. Just create a custom faction and add any faction you don't want to be enemies and set them to ally. Add that faction to your actor. Edited May 20, 2019 by Tasheni Link to comment Share on other sites More sharing options...
GowiHasti Posted May 20, 2019 Author Share Posted May 20, 2019 Its not just an actor though, I ant it for my whole custom playable race from the start. Link to comment Share on other sites More sharing options...
Recommended Posts