Garry's Mod Wiki

Player:DoAttackEvent

  Player:DoAttackEvent()

Description

Starts the player's attack animation. The attack animation is determined by the weapon's HoldType.

Similar to other animation event functions, calls GM:DoAnimationEvent with PLAYERANIMEVENT_ATTACK_PRIMARY as the event and no extra data.