yes. it needs a weapon.
Code: Select all
weapons = {
{
def = [[LIGHTNING]],
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[FIXEDWING LAND SINK SHIP SWIM FLOAT GUNSHIP HOVER]],
},
},
weaponDefs = {
LIGHTNING = {
name = [[LightningGun]],
areaOfEffect = 8,
beamWeapon = true,
craterBoost = 1,
craterMult = 2,
cylinderTargetting = 0,
damage = {
default = 160,
planes = 160,
subs = 8,
},
duration = 10,
explosionGenerator = [[custom:LIGHTNINGPLOSION]],
fireStarter = 50,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0.4,
intensity = 12,
interceptedByShieldType = 1,
lineOfSight = true,
noSelfDamage = true,
range = 280,
reloadtime = 1.8,
renderType = 7,
rgbColor = [[0.5 0.5 1]],
soundHit = [[lashit]],
soundStart = [[lghthvy1]],
soundTrigger = true,
startsmoke = [[1]],
targetMoveError = 0.3,
texture1 = [[lightning]],
thickness = 10,
turret = true,
weaponType = [[LightingCannon]],
weaponVelocity = 400,
},
},
example from CA