preloadSound
- Arma 3 v0.50
- First in Operation Flashpoint: Elite v1.00
Command · Markdown · JSON · original wiki page
Description
Makes sure that a sound can start playing without any delay once it is needed. Command works in Arma 3 but might not be implemented in earlier Arma installments.
Syntax
preloadSound soundName
Parameters:
soundName: String
Returns: Boolean
Examples
Example 1
private _sounds = getArray (missionConfigFile >> "CfgSounds" >> "sounds");
waitUntil { _sounds findIf { !(preloadSound _x) } == -1 };