aliens

Author Topic: AI doesn't know how to use meleePower on firearms  (Read 4424 times)

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
AI doesn't know how to use meleePower on firearms
« on: March 08, 2015, 09:00:32 am »
as the title says. i  assume is not intentional.

if i control the unit then i can use an option called Hit and stuns . this is a built in weapon. but  the enemy but AI never realizes that stun is also an option and only uses ranged attack.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #1 on: March 08, 2015, 10:14:55 am »
intentional, if you want aliens to use melee there are plenty of other ways to achieve that, like giving them a builtInWeapon

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #2 on: March 08, 2015, 10:35:42 am »
thanks warboy. i just made a melee weapon and added it to built in weapons. works fine :)

since you are here 1 more question. seems aliens don't know how to use medi-kits o healing weapons.  i wanted to make a unit that heals.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #3 on: March 08, 2015, 10:56:44 am »
that's a bit further outside the scope :P

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #4 on: March 08, 2015, 10:58:14 am »
is all good i made 2 built in weapons 1 melee and 1 ranged works fine. is a terror unit.  = )

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #5 on: March 08, 2015, 11:03:47 am »
you can also give them a meleeWeapon in the unit definition to give them a melee attack that doesn't use up a hand slot. useful for aliens using 2-handed weapons who don't want to suffer the aiming penalty. this, however, makes the melee capability available ONLY to the AI.
(that's how lobstermen are set up)

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: AI doesn't know how to use meleePower on firearms
« Reply #6 on: March 08, 2015, 11:28:57 am »
meleeWeapon: WEAPON1

doesn't seem to work. am i doing it wrong? this feature is not documented on rulset reference ufopaedia

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11732
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: AI doesn't know how to use meleePower on firearms
« Reply #7 on: April 09, 2015, 12:53:52 pm »
You can also give them normal melee weapons (like swords or whatever), but remember to set clip size as -1, otherwise they'll think they don't have ammo left.

that's a bit further outside the scope :P

It would be cool to have Medics who actually do medical stuff. :P