A_MonsterRail


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

A_MonsterRail

(no parameters)

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
  }
}
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.