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

env_muzzleflash

From Valve Developer Community
Revision as of 10:15, 4 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search
English (en)Translate (Translate)

env_muzzleflash is an e0 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.

C++ In code, it is represented by theCEnvMuzzleFlashclass, defined in theeffects.cppfile.

Keyvalues

Parent Attachment (parentattachment) ([todo internal name (i)]) <string>
The name of an attachment on the parent to hierarchically attach to.
Scale (scale) ([todo internal name (i)]) <float>
Size of the muzzle flash.


Inputs

Fire
Fires the effect once.


Outputs