mod参数/attack

来自RustedWarfare Wiki
canAttack:
值bool
描述"If set to false, can not attack any unit. Regards of other canAttack options below."
canAttackFlyingUnits:
值LogicBoolean
描述can also be narrowed per turret. Note: not required if canAttack is false.
canAttackLandUnits:
值LogicBoolean
描述can also be narrowed per turret
canAttackUnderwaterUnits:
值LogicBoolean
描述can also be narrowed per turret
maxAttackRange:
值float
描述(multiplied by globalScale)
canAttackNotTouchingWaterUnits:
值LogicBoolean
描述Default true. If false unit can only attack units in contact with the water. Used for units with torpedos. (can also be set per turret)
canOnlyAttackUnitsWithTags
值tags
描述Will only attack units that has the specified tags.
canOnlyAttackUnitsWithoutTags
值tags
描述Can only attack units without the specified tags.
turretMultiTargeting
值bool
描述Allow each turrets to fire at a different target at the same time. Very useful if [turret]limitingAngle is used
isMelee:
值bool
描述"Used with a low attack range (like maxAttackRange: 9) makes src and target radius get added to range, and effects AI."
meleeEngangementDistance
值int
描述"Makes unit move to attack nearby units. Defaults to 250 for melee, and 0 for non melee (Works even if non-melee, but might be unexpected to players)"
turretRotateWithBody
值bool
描述Are all turrets rotated when body rotates. Defaults to true
attackMovement:
值string
描述normal/bomber. bomber attack movement will retreat when energy runs out
dieOnAttack:
值bool
描述Will die when it attacks.
isFixedFiring:
值bool
描述Must aim body at target to shoot. Will often make the unit need to stop before it can aim and shoot.
aimOffsetSpread:
值float
描述Offset each shot multiplied by target radius. Defaults to 0.6. aimOffsetSpread:0 will make unit always attack center
stopTargetingAfterFiring
值bool
描述Unit stops targeting after firing a shot. Rarely used or needed.
disablePassiveTargeting:
值bool
描述Unit only attacks manually ordered target. Rarely used or needed.
showRangeUIGuide
值bool
描述Will it show the range indicator. Useful for showing ranges in radar and related structures.
shootDelayMultiplier
值float
描述Defaults to 1. Can be dynamically changed with setUnitStats
shootDamageMultiplier
值float
描述Defaults to 1. Can be dynamically changed with setUnitStats
turretSize:
值float
描述(multiplied by globalScale)
turretTurnSpeed:
值float
描述
shootDelay:
值float
描述"Global delay, can also use delay on each turret"