sound_get

Returns the unique index (real) of the sound asset loaded from the /sounds folder (should be in .ogg format).

ArgumentTypeDescription
sound:stringThe name of the sound to get the index of

Example, called from ustrong.gml:

// sets the sound assigned to the first ustrong hitbox:
set_hitbox_value( AT_USTRONG, 1, HG_HIT_SFX, sound_get( "custom" ));