I'm trying to get the following:
A laser, just as the MissileDefender, on the Aurora, but standard, so attacking something will automaticly use the missiledefender laser.
I used this code:
Quote:
AddModule
Behavior = SpecialAbility ModuleTag_Override01
SpecialPowerTemplate = SpecialAbilityMissileDefenderLaserGuidedMissiles
UpdateModuleStartsAttack = Yes
End
End
AddModule
Behavior = SpecialAbilityUpdate ModuleTag_Override02
SpecialPowerTemplate = SpecialAbilityMissileDefenderLaserGuidedMissiles
StartAbilityRange = 500.0
AbilityAbortRange = 800.0 ;If the target moves outside this range, abort.
PreparationTime = 1000
PersistentPrepTime = 500
SpecialObject = LaserBeam
SpecialObjectAttachToBone = WEAPONA01
End
End
|
(PS: I used it in a map.ini, gence the Override stuff)
However, it doesn't work. I even used a seperate button for it,
Quote:
CommandButton Command_F15ELGBAttack
Command = ATTACK_MOVE
SpecialPower = SPECIAL_MISSILE_DEFENDER_LASER_GUIDED_MISSILES
Options = OK_FOR_MULTI_SELECT NEED_TARGET_POS
TextLabel = CONTROLBAR:AttackMove
ButtonImage = SSAttackMove2
CursorName = AttackMove
InvalidCursorName = GenericInvalid
DescriptLabel = CONTROLBAR:ToolTipAttackMove
ButtonBorderType = ACTION
End
CommandSet AmericaJetAuroraCommandSet
9 = Command_F15ELGBAttack
11 = Command_Guard
12 = Command_Stop
End
|
bt with the only effect that the ButtonImage gets mixed up :|
Anyone any bright ideas or suggestions to use another behavior?