zardeon Posted April 6, 2006 Share Posted April 6, 2006 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"endifcan somebody help... :blush: Link to comment Share on other sites More sharing options...
Morgoth Posted April 7, 2006 Share Posted April 7, 2006 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. Link to comment Share on other sites More sharing options...
zardeon Posted April 8, 2006 Author Share Posted April 8, 2006 ok thx ill try the SetFactionReaction and i can make a big war too with if GetDistance <520 StartCombat"Light Soldier"endif Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.