A_AlertMonsters

From ZDoom Wiki

Jump to: navigation, search

A_AlertMonsters

(no parameters)


This can be used on both missiles and monsters. As of 2.0.99 it can be used directly on a weapon. (needs confirmation)

For monsters it alerts all monsters in hearing range of the current monster's target.

For projectiles it alerts all monsters in hearing range of the projectile's shooter.

For weapons it alerts all monsters in hearing range of the player holding the weapon.

Examples

The StrifeZap1 actor class uses this function to wake up enemies when the projectile explodes.

Death:
  ZAP1 A 3 A_AlertMonsters
  ZAP1 BCDEFE 3
  ZAP1 DCB 2
  ZAP1 A 1
  Stop
Personal tools