Skip to content

Enable a unit to automatically heal allies

Mailaender edited this page Jun 17, 2012 · 10 revisions

Requires:

A "Heal-Weapon" (can be found in mods/ra/weapons.yaml name is "heal")

Conflicts with:

  • Units who already got a weapon (even making the heal a secondary weapon results in the unit attack and heal allies at the same time)
  • Units who already got a weapontrait (due to engine-limitaitions differentiating between for example an "AttackFrontal" and an "AttackMedic" is not possible yet)
  • Structure won't work as they don't have the IFacing and Move.Mobile trait.

If you want a unit become a healer edit like this:

  1. Open up mods/ra(or /cnc)/weapons.yaml
  2. Make a heal weapon (in Red Alert it already exists)
  3. Open up mods/ra(or /cnc)/rules/"".yaml ("" = choose between infantry, structures, aircraft, vehicles etc.)
  4. Add traits
	AutoHeal:

and

	AttackMedic:
		PrimaryWeapon: Heal

Back

Clone this wiki locally