PDA

View Full Version : Unattackable unit


Tesla
03-19-2007, 02:15 PM
Hey, does anybody know how to make a player-owned unit that the enemy can't and won't attack?

Fenring
03-19-2007, 03:00 PM
I use Immune=yes, LegalTarget=no, Civilian=yes, Insiginificant=yes and ThreatPosed=0. Takes no damage, poses no threat but why would you need this?

FlyingZ
03-20-2007, 01:15 PM
If it attacks an ai and the ai can't hit back it's an ie

Tesla
03-20-2007, 08:38 PM
I use Immune=yes, LegalTarget=no, Civilian=yes, Insiginificant=yes and ThreatPosed=0. Takes no damage, poses no threat but why would you need this?

Because I am trying to create a unit that can call in an ion cannon strike the same way Boris calls in an airstrike. The first part of it is easy (making an invisible aircraft with a weapon with AnimList=IONBEAM in its warhead code, copying part of Boris's code into a unit that has Secondary=Flare, except changing the aircraft he calls in to my invisible aircraft). I just didn't know how to make my unit non-attackable.