A_SPosAttackUseAtkSound

From ZDoom Wiki
Jump to: navigation, search

A_SPosAttackUseAtkSound

(no parameters)


A variant of A_SPosAttack which uses the attack sound of the actor instead of the hard coded "shotguy/attack".

Examples

Code taken from the Spider Mastermind:

 Missile:
   SPID A 20 Bright A_FaceTarget
   SPID G 4 Bright A_SPosAttackUseAtkSound
   SPID H 4 Bright A_SPosAttackUseAtkSound
   SPID H 1 Bright A_SpidRefire
   Goto Missile+1