nanos world API Reference Unofficial documentation
Function Shared Slow

Melee:SetImpactSound

Sets the Sound when hitting something

Syntax

Lua
my_melee:SetImpactSound(surface_type, asset_path, volume = 1.0, pitch = 1.0)

Parameters

Name Type Default Description
surface_type SurfaceType The surface to apply the sound. Use <code>SurfaceType.Default</code> to be the default to all non defined surfaces. Note: Surfaces <b>Water</b> and <b>Flesh</b> already have default sounds and must be explicitly overridden
asset_path SoundPath The Sound used when attacking
volume optional float 1.0
pitch optional float 1.0