Posted by: Gameanater - Thursday, April 28, 2016 8:08:51 PM
I'm trying to give the Demolitions General's RPG Troopers the Tank Hunter's TNT ability, but whenever I click the button and hover over the target, the icon just says I can't place it there and does nothing. Here's the code I've added to the RPG Trooper: [code=plain] Behavior = SpecialAbility ModuleTag_TNT01 SpecialPowerTemplate = SpecialAbilityTankHunterTNTAttack UpdateModuleStartsAttack = Yes InitiateSound = TankHunterVoiceTNT End Behavior = SpecialAbilityUpdate ModuleTag_TNT02 SpecialPowerTemplate = SpecialAbilityTankHunterTNTAttack StartAbilityRange = 5.0 PreparationTime = 0 SpecialObject = TNTStickyBomb MaxSpecialObjects = 8 SpecialObjectsPersistWhenOwnerDies = Yes ;Charges are removed instantly when owner dies (nobody can detonate). SpecialObjectsPersistent = Yes ;Charges are persistent till lifetime expires or owner detonates them. UniqueSpecialObjectTargets = Yes ;This prevents multiple charges placed on the same object. FleeRangeAfterCompletion = 100.0 ;Runs away after finishing ability End And the CommandSet code: CommandSet Demo_GLAInfantryTunnelDefenderCommandSet 1 = Command_ChinaInfantryTankHunterTNTAttack 11 = Command_AttackMove 13 = Command_Guard 14 = Command_Stop End CommandSet Demo_GLAInfantryTunnelDefenderCommandSetUpgrade 1 = Command_ChinaInfantryTankHunterTNTAttack 2 = Demo_Command_TertiarySuicide 11 = Command_AttackMove 13 = Command_Guard 14 = Command_Stop End [/code]

Posted by: Annihilationzh - Friday, April 29, 2016 12:06:33 AM
I can't see anything wrong with what you've got there. The problem you have makes me think you've likely got a mix-up somewhere and the unit you're testing is not the one with the ability in it's code.

Posted by: Gameanater - Friday, April 29, 2016 9:35:49 AM
Well I looked, you're correct! I somehow managed to apply the code to the STINGER SOLDIER and not the RPG Trooper and didn't even notice! Silly me! XD