WEAPON:ShootEffects

From Garry's Mod
Jump to: navigation, search
 WEAPON:ShootEffects( )

Description

A convenience function to create shoot effects.

Examples

Example

As defined in weapon_base

function SWEP:ShootEffects()

	self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )  -- View model animation
	self.Owner:MuzzleFlash() -- Crappy muzzle light
	self.Owner:SetAnimation( PLAYER_ATTACK1 ) -- 3rd Person Animation

end


Personal tools
Navigation