Here, try this. I actually think the main error is at the very bottom- you had "runner" instead of "Behmoth".
Code: Select all
unitDef = {
unitname = [[Behmoth]],
name = [[Behmoth]],
description = [[>Ground units< >Aircraft<]],
acceleration = 0.5,
brakeRate = 3,
buildCostEnergy = 0,
buildCostMetal = 4000,
builder = false,
buildPic = [[Runner.png]],
buildTime = 1000,
canAttack = true,
canGuard = true,
canMove = true,
canPatrol = true,
canstop = [[1]],
category = [[LAND]],
--corpse = [[DEAD]],
customParams = {
helptext = [[ ]],
},
defaultmissiontype = [[Standby]],
--explodeAs = [[SMALL_UNITEX]],
footprintX = 2,
footprintZ = 2,
--iconType = [[Tank]],
idleAutoHeal = 0,
idleTime = 300,
--leaveTracks = true,
mass = 20.5,
maxDamage = 1000,
maxSlope = 25,
maxVelocity = 3.5,
maxWaterDepth = 22,
movementClass = [[SPECIALHOVER]],
noAutoFire = false,
noChaseCategory = [[]],
objectName = [[T125.s3o]],
seismicSignature = 4,
--selfDestructAs = [[SMALL_UNITEX]],
sfxtypes = {
explosiongenerators = {
-- [[custom:emg_shells_l]],
-- [[custom:flashmuzzle1]],
},
},
sightDistance = 425,
smoothAnim = true,
TEDClass = [[COMMANDER_CTRL_C]],
--trackOffset = 0,
--trackStrength = 8,
--trackStretch = 1,
--trackType = [[ComTrack]],
--trackWidth = 80,
turnRate = 150,
upright = false,
workerTime = 0,
weapons = {
{
def = [[T125Cannon]],
badTargetCategory = [[]],
onlyTargetCategory = [[]],
},
},
weaponDefs = {
T125Cannon = {
name = [[T125Cannon]],
alphaDecay = 0.1,
areaOfEffect = 8,
-- burst = 0,
-- burstrate = 0,
colormap = [[1 0.95 0.4 1 1 0.95 0.4 1 0 0 0 0.01 1 0.7 0.2 1]],
craterBoost = 1,
craterMult = 2,
damage = {
default = 200,
-- Terrordrone=3,
-- Infantry=3,
--Harassment=45,
--ANTI_INF=35,
--ANTI_AIR=40,
--LIGHT_TANK=30,
--Medium_TANK=20,
--Heavy_TANK=15,
--Support=40,
},
endsmoke = [[0]],
--explosionGenerator = [[custom:FLASHPLOSION]],
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0.4,
intensity = 0.7,
interceptedByShieldType = 1,
lineOfSight = true,
noGap = false,
noSelfDamage = true,
range = 500,
reloadtime = 2.0,
renderType = 4,
rgbColor = [[1 0.95 1]],
separation = 1.5,
size = 5.55,
sizeDecay = 0,
--soundStart = [[flashemg]],
sprayAngle = 1180,
stages = 10,
startsmoke = [[0]],
tolerance = 5000,
turret = true,
weaponTimer = 0.1,
weaponType = [[Cannon]],
weaponVelocity = 550,
},
},
}
return lowerkeys({ Behmoth = unitDef })