A_MonsterRail

From ZDoom Wiki
Jump to navigation Jump to search

A_MonsterRail

(no parameters)


Performs a railgun attack. The amount of damage this attack inflicts is specified with the calling actor's Damage property.

Examples

This is a railgun zombie. It fires a railgun shot that deals 15 damage. The attack sound was edited to give a railgun sound effect to the monster when fired, instead of the zombie's default pistol shot sound.

ACTOR RailgunZombie : ZombieMan
{
  Damage 15
  AttackSound "weapons/rbeam"
  States
  {
  Missile:
    POSS E 10 A_FaceTarget
    POSS F 8 A_MonsterRail
    POSS E 8
    Goto See
  }
}