Entity:EmitSound(Entity, string, enumeration/SOUND_LEVEL = SNDLVL_NORM, number = 100, number = 1, number = pEntity->IsWeapon() ? CHAN_WEAPON : CHAN_AUTO, number = 0, number = 0, RecipientFilter?)
shared
Arguments
- entity Entity
- soundName string
- Optional soundLevel SOUND_LEVEL SNDLVL_NORM
- Optional pitchPercent number 100
- Optional volume number 1
- Optional channel number pEntity->IsWeapon() ? CHAN_WEAPON : CHAN_AUTO
- Optional soundFlags number 0
- Optional dsp number 0
- Optional filter RecipientFilter
Returns
- number The sound duration.
Examples
Entity:EmitSound – Emit sound.