Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: lefkos on July 11, 2007, 11:30:23 am

Title: how can an enemy attack another enemy?
Post by: lefkos on July 11, 2007, 11:30:23 am
hi!
the names says all
i have a mission and another company(the EA) is showing its faces for the first time but the UC(another evil company) is also in battle.. but how can i let the EA attacking the UC and the UC Attacking the EA if they are both Tha badguys(they dont belong to each other offcourse)
Title: Re: how can an enemy attack another enemy?
Post by: karajorma on July 11, 2007, 11:39:34 am
Go to the Missions Specs editor and tick all teams at war.

Assign the EA ships as hostile and the UC as neutral in the Ships Editor. Both will now appear as red blips on the radar but will happily kill each other. If you want the UC to have a different colour from the EA assign them to the unknown team.

(Incidentally if you don't tick all teams at war Hostile will attack Neutral but Neutral will not attack Hostile.)


If you need something more complicated than this then you're going to have to investigate the iff_defs.tbl.