x:
值float
描述"Sets the horizontal position of the turret. 0 is center, negatives toward left, positives toward right."
y:
值float
描述"Sets the vertical position of the turret. 0 is center, negatives toward bottom, positives toward top."
copyFrom:
值turret ref
描述Copy all values from another turret as defaut values for this turret
projectile
值projectile ref
描述Projectile fired from this turret.
altProjectile
值projectile ref
描述Alternative projectile fired from this turret when altProjectileCondition is true
altProjectileCondition
值LogicBoolean
描述Used with altProjectile
barrelX
值float
描述Defaults to 0. Controls horizontal position for projectile spawn.
barrelY
值float
描述Defaults to size. Note: size and barrelY have the same meaning
barrelHeight
值float
描述Height of barrel in 3d. Effect projectile and shoot flame starting height
height:
值float
描述"Height of the unit in 3D, to be used with decals"
size:
值float
描述Controls the distance between the center of the turret and the point from where projectiles spawn.
turnSpeed
值float
描述Max turn speed of the turret
turnSpeedAcceleration
值float
描述"Defaults to disabled, and full turn speed is used."
turnSpeedDeceleration
值float
描述Defaults to turnSpeedAcceleration. Setting this higher than turn acceleration might allow faster targets to be hit
idleDir
值float
描述Defaults to 0
idleDirReversing
值float
描述Defaults to idleDir+180 unless attached to another turret (as attached turret will often be rotating when reversing)
shouldResetTurret:
值bool
描述Defaults true. False to disable the reseting turret angle when idle
idleSweepAngle
值int
描述"Disabled by default. Controls how far the turret will ""look"" left and right"
idleSweepDelay
值float
描述Controls the delay between idleSweep movements
idleSweepSpeed
值float
描述Controls the speed with which the turret sweeps when idle
idleSweepCondition
值LogicBoolean
描述Disable idle sweep if false
idleSweepAddRandomDelay
值float
描述"Default 1-20 depends on idleSweepDelay, used to stop sweep syncing up with other units"
idleSweepAddRandomAngle
值int
描述Default 0
attachedTo:
值turret ref
描述"Id of another turret to attach to, will be positioned relative to it, and rotate with it."
slave:
值bool
描述Locks this turret's direction and shot cooldown to attached turret. Often used with warmup for multiple barrel guns
isMainNanoTurret:
值bool
描述"Defaults to false. Turret to use for creating buildings, etc. should only be true on one turret, and should have canShoot set to false"
energyUsage:
值float
描述energyUsage: 1
resourceUsage
值price
描述can be in credits/energy/hp/shield/ammo. Stops firing if not met
delay:
值float
描述Override global shootDelay for this turret
linkDelayWithTurret
值turret ref
描述When this other turret fires the cooldown delay on this turret will be reset/removed
warmup:
值float
描述Delay before firing a shot.
warmupCallDownRate
值float
描述Rate to reduce warmup when turret is not ready to fire at any targets
warmupNoReset
值bool
描述Defaults to false. When true warmup is not reset after firing a shot and turret doesn't wait for warnup. Used with warmupCallDownRate and warmupShootDelayTransfer.
warmupShootDelayTransfer
值float
描述"Defaults to 0, amount to reduces the next shot delay depending on warmup. When used with warmupNoReset, can make a each shot faster."
onShoot_freezeBodyMovementFor:
值float
描述Freezes body movement while shooting.
barrelOffsetX_onOddShots:
值float
描述"0 by default. Sets a barrelX offset only during odd numbered shots, useful for twin-barreled units. Use with barrelX. Use the opposite value of barrelX for most cases."
aimOffsetSpread:
值
描述Sets the shot inaccuracy. 0 will make all shots land on target's center
canShoot:
值bool
描述Defaults to true
canAttackFlyingUnits:
值LogicBoolean
描述"Narrows targeting for this turret, note targeting for the whole unit in [attack] is applied first. (so you can only use this to target less not more)"
canAttackLandUnits:
值LogicBoolean
描述Default true. If false unit cannot attack surface units.
canAttackUnderwaterUnits:
值LogicBoolean
描述Default true. If false unit cannot attack underwaterunits.
canAttackNotTouchingWaterUnits:
值LogicBoolean
描述Default true. If false unit can only attack units in contact with the water. Used for units with torpedos.
canOnlyAttackUnitsWithTags:
值tags
描述Only attacks potential targets with specific tags
canOnlyAttackUnitsWithoutTags:
值tags
描述Only attacks potential targets without specific tags
canAttackCondition:
值LogicBoolean
描述"Normally, used to optionally disable a turret based on a LogicBoolean. Eg: this unit's height"
canAttackMaxAngle:
值float
描述"Max angle to target for turret to be allowed for fire. Defaults to 5, don't set lower. Can be set to 181 for turrets that don't need to turn to fire missiles."
clearTurretTargetAfterFiring:
值bool
描述Clears the turrets sub-target when using multi-targeting
limitingRange:
值float
描述Make this turret have less range than the maxAttackRange. Do not apply this to all turrets change maxAttackRange instead.
limitingAngle
值int
描述Linked with idleDir. Turret will only be able to fire at units +/- this angle.
limitingMinRange:
值int
描述Sets minimum range for turret.
interceptProjectiles_withTags:
值tags
描述Currently used with anti-nuke units.
interceptProjectiles_andTargetingGroundUnderDistance:
值int
描述Minimum distance required for intercepting projectile
interceptProjectiles_andUnderDistance:
值int
描述"Defaults to 2000, distance inflight before firing"
interceptProjectiles_andOverHeight:
值int
描述Defaults to 0. Sets the projectile target height limit
laserDefenceEnergyUse:
值float
描述Set to enable a projectile laser defence from this turret. Should also set the energyMax in core.
invisible:
值LogicBoolean
描述"Don't render this turret, but still can shoot, etc."
image:
值file (image)
描述Use custom image. Overrides unit's main turret image
image_applyTeamColors
值bool
描述"When true, the specific turret applies team colors over the special greens in the sprite."
image_drawOffsetX
值float
描述Moves the image horizontally from the turret center.
image_drawOffsetY
值float
描述Moves the image verticallly from the turret center.
chargeEffectImage:
值file (image)
描述Used with warmup. Shows a scaling effect image on turret barrel when charging.
warmupStartEffect
值effect ref
描述Spawns specified effects when the specific turret is charging/warming up
shoot_sound:
值string
描述"Can be linked to an .ogg or .wav file, or one of the default game sounds (list at bottom of reference)"
shoot_sound_vol:
值float
描述Sets the volume of the shoot sound
shoot_flame:
值effects
描述"Current types are: small, large, smoke, shockwave, or CUSTOM: effectSectionName"
shoot_light
值color
描述Produces a colored light upon shooting
idleSpin:
值float
描述"Spin rate when idle, used on missile turrets"
onShoot_playAnimation
值animation ref
描述Play a custom animation from an [animation] section after firing this turret
onShoot_triggerActions
值action refs
描述Trigger these actions each time this turret fires
unloadUpToXUnitsAndGiveAttackOrder
值int
描述Unloads X units at turret barrel locations and gives them the attack order of turret target
recoilOffset
值float
描述Push turret forward or back after firing for a recoil effect. Value in pixels.
recoilOutTime
值float
描述Time to get to offset position after firing
recoilReturnTime
值float
描述Time to return to default position
showRangeUIGuide
值bool
描述Defaults to true. Displays the attack range for this turret