env_muzzleflash

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CEnvMuzzleFlash
CPointEntity
CBaseEntity
C++ effects.cpp

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 it 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

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
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.

FGD Code

@PointClass base(Targetname, Parentname, Angles) = env_muzzleflash : "Muzzle Flash" 
[
	parentattachment(string) : "Parent Attachment" : "" : "The name of an attachment on the parent to hierarchically attach to."
	scale(float) : "Scale" : 1 : "Size of the muzzle flash."
	
	input Fire(void) : "Fires the effect once."
]
Icon-callout-underlinked.png
This article needs more links to other pages (since January 2024). You can help improve navigation by adding links to related documentation, such as entities or tools.