how do i give a new ability to a unit (ex: giving the hunt for enemies ability to 2m repulser tanks)
The hunt ability is a wonderfully easy ability to include: First, add to the unit's the line "HUNT" (for the 2M, you'll known you're in the right place because the line "SHIELDED" will also be there.
I'll look up the rest of what to do in a second...
EDIT: this is what you want:
ABILITY_COUNTDOWN,AFFECTED_BY_SHIELD, HUNT, WALK_LOCOMOTOR, IDLE, TARGETING, WEAPON, TURRET, POWERED, SHIELDED, REVEAL, HIDE_WHEN_FOGGED, UNIT_AI, TELEKINESIS_TARGET,STUNNABLE, WIND_DISTURBANCE, SURFACE_FX,DAMAGE_TRACKING
This is what you need to add:
This is what my 2M's abilities area says (it may be slightly different from yours because I think I made the power-to-weapons ability drain less shield power).
POWER_TO_WEAPONS WEAPON_DELAY_MULTIPLIER, 0.3f SHIELD_REGEN_MULTIPLIER, -3.0f ENERGY_REGEN_MULTIPLIER, 0.3f SPEED_MULTIPLIER, 0.3f CAUSE_DAMAGE_MULTIPLIER , 1.5f 50 6 Unit_Attack_2M_Tank
What you need to do is put somewhere in there (either before or after the power-to-weapons ability).
HUNT
You will need to do the same thing for the 2M's ground company: "Imperial_Armor_Group"
Got it? :)
...whoa... i thot it would be at least remotely easy:eek:
maybe i can do this, i need to know where to find the 2m repulser tank file for changing
Search in GROUNDVEHICLES.xml, then press Ctrl+F and paste this:
M1_Repulsor_Tank
I kno it's an other name, but this is just his name in the files. Not in-game.
POWER_TO_WEAPONS WEAPON_DELAY_MULTIPLIER, 0.5f SHIELD_REGEN_MULTIPLIER, -2.0f ENERGY_REGEN_MULTIPLIER, 1f SPEED_MULTIPLIER, 0.5f CAUSE_DAMAGE_MULTIPLIER , 3.0f 60 10 <Unit_Attack_2M_Tank HUNT is this right? what should i do differnetly if it isn't?
i got it!!!:) thank you so much to xanofar and invisible hand for you help
You 'r welcome! You can always ask for help.