Author Topic: Making an NPC shoot arrows at a placable?  (Read 354 times)

Legacy_Mr. Versipellis

  • Full Member
  • ***
  • Posts: 236
  • Karma: +0/-0
Making an NPC shoot arrows at a placable?
« on: November 28, 2012, 05:38:09 pm »


               I've got two NPCs who need to attack some archery targets with bows and arrows. They're set up and working, as are the targets, and they've got a heartbeat script which should make them attack the placables:

#include "nw_i0_generic"
void main()
{
object oTarget = GetNearestObjectByTag("se1_ArcheryTarget1");
DetermineCombatRound(oTarget);
}

Trouble is that while they always go into their fighting stance and are obviously ready to start combat, they don't actually shoot any arrows. Is there some way of getting them to fire at the targets? They can definitely equip the bows, and they have an infinite supply of arrows.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Making an NPC shoot arrows at a placable?
« Reply #1 on: November 28, 2012, 05:54:41 pm »


               exchange DetermineCombatRound with ActionAttack
               
               

               
            

Legacy_Mr. Versipellis

  • Full Member
  • ***
  • Posts: 236
  • Karma: +0/-0
Making an NPC shoot arrows at a placable?
« Reply #2 on: November 28, 2012, 06:59:20 pm »


               Sorted. Cheers!