Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso Lento

Melee:SetImpactSound

Sets the Sound when hitting something

Non ancora tradotto

Sintassi

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

Parametri

Nome Tipo Predefinito Descrizione
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 facoltativo float 1.0 —
pitch facoltativo float 1.0 —