Skip to content

ax.util

Source: gamemode/framework/util/util_sound.lua

Utility helpers used across the Parallax framework (printing, file handling, text utilities, etc.).

Documented functions: 1

Functions


ax.util:AddSound(name, path, volume, pitch, channel, level)

Utility helpers used across the Parallax framework (printing, file handling, text utilities, etc.). Register a sound script by name. Wrapper around sound.Add with a stable signature used across the framework.

Notes: - path may be a string or a table of strings. - pitch may be a number (fixed) or a {min,max} table.

Realm: shared

Parameters

Name Type Description
name string Sound script name (e.g. "ax.ui.hint")
path string\|table Sound file path(s)
volume number\|nil Volume scalar (0-1)
pitch number\|table\|nil Pitch percent or range table
channel number\|nil Sound channel (CHAN_*)
level number\|nil Sound level (dB)