View Thread
Point Defense Systems » Support for our Releases » Coding / Scripting Support
 Print Thread
need help with creating PDS weapon
mrWHO
I have a destroyable missile that is shoot down by PDS turrets well.

I also have a weapon that is unable to taerget and shoot to those missiles.

My question is: what I need to add to weapon file to make it able to shoot down incoming missiles?
 
Inert
If it is a instanthit weapon, it can't shoot down missiles.

There's a way to do it, but I didn't bother to find out.

Anyways, for normal weapons:


setAccuracy(NewWeaponType, 0, { munition = x.x, })


Where setAccuracy(NewWeaponType is the function inside the .wepn file, 0 - the default penetration for any other shiptype not defined (if you want it to target nothing but munitions, keep it at 0), and {munition =x.x} the ship type(s) (in this case, only munition), and x.x the percentage of its accuracy. As far as I know, it must be a two digit numer only (e.g. 0.1, 0.5, 1.0) where 1.0 = 100%, 0.5 = 50%, etc.

Hope that helps.
 
TelQuessir
For lasers to engage missiles do it like V7.6 or 9 - configure the laser as a projectile weapon.
 
Jump to Forum