From DoomWiki.org

Zombieman attacking the player.

A_PosAttack is a code pointer used in the attack animation for the Trooper.

A_PosAttack causes the monster to fire a hitscan attack against its current target, internally calling A_FaceTarget to face in the direction of the target. It is similar to the A_FirePistol code pointer used in the pistol firing animation sequence. The sound effect DSPISTOL is played.


The A_PosAttack code pointer appears in the following states in Doom's state table:


The following is an example of how to set the A_PosAttack code pointer in a Dehacked file:

Pointer 21 (Frame 34)
Codep Frame = 185

Or using BEX syntax:

Frame 1234 = PosAttack

See also[edit]

External links[edit]