Jump to content

Faction Script Help Plz


zardeon

Recommended Posts

Posted

I need some help with scripts to let factions attack eachother...im not good with scripts but i think its something with

if (get DistanceFaction"NAME" <200)

AttackFaction"NAME"

endif

can somebody help... :blush:

Posted

You cannot read the distance an actor has to a certain faction. Imagine if I asked you how far you are away from the Democrats ;) Similarly, you can only tell an actor to

StartCombat [ActorID]

.

The only way to use the GetDistance function is also

 GetDistance [ActorID]

.

 

I am not completely sure whether this will have the desired effect but you may want to try setting the faction reaction to a very low value (e.g. by using SetFactionReaction [factionID] [factionID] [value]). I haven't tried it, but I would assume that, providing the value is sufficiently low, members of those two factions will attack each other automatically on sight.

Posted

ok thx ill try the SetFactionReaction and i can make a big war too with

 

if GetDistance <520

StartCombat"Light Soldier"

endif

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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