:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Fri Jul 03, 2020 8:13 pm
All times are UTC + 0
 Forum index » Modding Central » Generals Editing Forum
How do I change special ability target filter?
Moderators: Generals Moderators, Global Moderators
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
kenosis
Commander


Joined: 19 Aug 2009
Location: Moscow State University

PostPosted: Fri Nov 22, 2019 6:09 am    Post subject:  How do I change special ability target filter? Reply with quote

For example. Tank Hunter TNT attack can only be used on neutral or enemy. How do I change this? The only thing I found in the INIs is its cooldown.
_________________
Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself?

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account Yahoo Messenger Account
DaubertMotion
Cyborg Engineer


Joined: 17 Dec 2015

PostPosted: Sun Dec 15, 2019 4:03 pm    Post subject: Reply with quote

Compare:

Code:
CommandButton Command_ChinaInfantryTankHunterTNTAttack
  Command                 = SPECIAL_POWER
  SpecialPower            = SpecialAbilityTankHunterTNTAttack
  Options                 = NEED_SPECIAL_POWER_SCIENCE OK_FOR_MULTI_SELECT NEED_TARGET_ENEMY_OBJECT NEED_TARGET_NEUTRAL_OBJECT
  TextLabel               = CONTROLBAR:TNTAttack
  ButtonImage             = SSTNT
  CursorName              = TankHunterTNTAttack
  InvalidCursorName       = PlaceChargeInvalid
  ButtonBorderType        = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:ToolTipChinaFireTankHunterTNTAttack
End


with

Code:
CommandButton Command_GLAInfantryRebelBoobyTrapAttack
  Command                 = SPECIAL_POWER
  SpecialPower            = SpecialAbilityBoobyTrap
  Options                 = NEED_SPECIAL_POWER_SCIENCE OK_FOR_MULTI_SELECT NEED_TARGET_NEUTRAL_OBJECT NEED_TARGET_ALLY_OBJECT NEED_UPGRADE
  Upgrade                 = Upgrade_GLAInfantryRebelBoobyTrapAttack
  TextLabel               = CONTROLBAR:BoobyTrapAttack
  ButtonImage             = SSTNT
  CursorName              = TankHunterTNTAttack
  InvalidCursorName       = PlaceChargeInvalid
  ButtonBorderType        = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:ToolTipChinaFireRebelBoobyTrapAttack
  UnitSpecificSound       = RebelVoiceModeBoobyTrap
End

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Generals Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1096s ][ Queries: 10 (0.0046s) ][ Debug on ]