Garry's Mod Wiki

WEAPON:ShootEffects

  WEAPON:ShootEffects()

Description

A convenience function to create shoot effects.

Example

As defined in weapon_base

function SWEP:ShootEffects() self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK ) -- View model animation self:GetOwner():MuzzleFlash() -- Crappy muzzle light self:GetOwner():SetAnimation( PLAYER_ATTACK1 ) -- 3rd Person Animation end