{"name":"preloadSound","title":"preloadSound","type":"command","url":"https://community.bistudio.com/wiki/preloadSound","revid":376517,"updated":"2025-10-22T23:11:17Z","groups":["Sounds"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","description":"Makes sure that a sound can start playing without any delay once it is needed.\nCommand works in Arma 3 but might not be implemented in earlier Arma installments.","syntaxes":[{"syntax":"preloadSound soundName","params":[{"name":"soundName","type":"String","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"soundName"}}],"examples":[{"code":["private _sounds = getArray (missionConfigFile >> \"CfgSounds\" >> \"sounds\");\nwaitUntil { _sounds findIf { !(preloadSound _x) } == -1 };"]}],"see_also":["preloadTitleRsc"]}