Jump to content

Script error?


GowiHasti

Recommended Posts

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 auto
Faction property HorkerFaction auto
Faction property PlayerFaction auto
PlayerRef.AddToFaction(SlaughterfishFaction)
PlayerFaction.SetReaction(SlaughterfishFaction, 3)
PlayerRef.AddToFaction(HorkerFaction)
PlayerFaction.SetReaction(HorkerFaction, 3)
Link to comment
Share on other sites

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 by Tasheni
Link to comment
Share on other sites

  • Recently Browsing   0 members

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