mod参数/attack
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" |