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"