A_BulletAttack

From ZDoom Wiki
Jump to: navigation, search

A_BulletAttack

(no parameters)


Performs a hitscan attack. The amount of bullets fired is specified with the actor's Damage property. Additionally the attack sound is being played.

Examples

This is a shotgun zombie. It fires 5 bullets, according to its Damage property.

ACTOR ShotgunZombie : ZombieMan
{
  Damage 5
  States
  {
  Missile:
    POSS E 10 A_FaceTarget
    POSS F 8 A_BulletAttack
    POSS E 8
    Goto See
  }
}