This article's documentation is for anything that uses the Source engine. Click here for more information.

env_muzzleflash

From Valve Developer Community
Jump to: navigation, search
Underlinked - Logo.png
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024


English (en)
... Icon-Important.png
Info.png
This entity is not in the Counter-Strike: SourceDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Counter-Strike: Global Offensive FGD by default .
See below for instructions on making it available.
class hierarchy
CEnvMuzzleFlash defined in effects.cpp
CPointEntity
CBaseEntity

env_muzzleflash is a point entity available in all Source Source games. This is an entity that creates the effect of flames leaving a guns barrel when fires. This entity is useful when making your own custom-made turrets or weapons to add a realistic flame effect. Unlike env_gunfire, this does not make any bullet effects or sound.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Parent Attachment (parentattachment) <string>
The name of an attachment on the parent to hierarchically attach to.
Scale (scale) <float>
Size of the muzzle flash.

Inputs

Fire
Fires the effect once.