Entity.MuzzleFlash

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:MuzzleFlash( )
Description:
Fires the muzzle flash effect of a carried weapon.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.MuzzleFlash]Entity.MuzzleFlash [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will make it look like you're firing your weapon.
Used onNewerClient.png
Code
local ply = LocalPlayer()
local weapon = ply:GetActiveWeapon()
ply:MuzzleFlash()
weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox