Turret command is titled "Advanced Missile Defense" when you're selecting it. Works the same as the regular, requires fight command mk2 to be an option.
Thanks goes to Red Spot and Eladan for their input on this.

Missile Def Mk2.spk
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
As well as those of us who also don't want their MD turrets wasting ammo on anything that isn't a missile. I've got 4 streams of searing, radioactive plasma washing over them, I don't need any help from my li'l turret buddies...fud wrote:This script was more suited towards the people that were fed up with their turrets shooting up ships that were potential bail outs. *My* reasoning for pursuing it, was having your own missles shot down by them, as they were shooting at enemy ships when no missles were there.
I would like to have a script like that as well. shoots ememies but also shoots missiles as well. Not just wait until i'm hit. Would be nice having a nice amount of turrent scripts...JMCorp wrote:while you're at it make an "attack enemies" that shoots at enemy ships but targets missiles first? the default attack enemies ignores missiles completely. the default missile defense will not attack an enemy until it has shot at you and HIT first. really annoying.
fud wrote:I'm not sure there's any way to discriminate missile types. It just looks for a missile object.
Code: Select all
$victim = [THIS] -> find nearest missile aiming to me
010 if $victim -> exists
011
012 if $victim == Hammerhead Missile
013 break
014 end
015
016 set script command target: $victim
Does it look remotly as what I showed ...arcana75 wrote:Would this be about right...
Actually I have no clue what you typed, I'm not a scripterRed Spot wrote:Does it look remotly as what I showed ...arcana75 wrote:Would this be about right...![]()
Also note the word "add" in my previous post .. its there cause of a reason ..
(there are much better ways of implementing it than that I showed, but the way I showed should be a good "start" .. Once you have it working without causing infinite loops you may want to try and optimize the script, altho it would have little use, besides being a good experiance, as I already stipped all mumbo-jumbo from the from the script when I cut the lines to stop it targeting ships)