Laser lock-on for tanks
Does anyone know how to get the missile defender laser lock on ability to work for other units? I added the folowing code to the crusader in an attempt to allow it to fire it's primary weapon quicker but all it does is just fire the laser at the target and sits there doing nothing. The laser will only fire at tanks (set deliberately).
AS WEAPON SET:
WeaponSet
Conditions = None
; -----
Weapon = PRIMARY HammerheadRailgun
PreferredAgainst = PRIMARY STRUCTURE
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = SECONDARY BurstCannon
PreferredAgainst = SECONDARY INFANTRY
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = TERTIARY MissileDefenderLaserGuidedMissileWeapon
PreferredAgainst = TERTIARY VEHICLE
AutoChooseSources = TERTIARY NONE
End
IN ENGINEERING PARAMETERS:
Behavior = SpecialAbility ModuleTag_22
SpecialPowerTemplate = SpecialAbilityMissileDefenderLaserGuidedMissiles
UpdateModuleStartsAttack = Yes
InitiateSound = MissileDefenderVoiceAttackLaser
End
Behavior = SpecialAbilityUpdate ModuleTag_23
SpecialPowerTemplate = SpecialAbilityMissileDefenderLaserGuidedMissiles
StartAbilityRange = 200.0
AbilityAbortRange = 250.0 ;If the target moves outside this range, abort.
PreparationTime = 1000
PersistentPrepTime = 500
SpecialObject = LaserBeam
SpecialObjectAttachToBone = Muzzle01
End
|