A_BulletAttack

From ZDoom Wiki
Revision as of 08:02, 27 April 2013 by Blue Shadow (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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
  }
}