PreloadMissionAudio

From Multi Theft Auto: Wiki
Revision as of 17:23, 3 February 2007 by IJs (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function preloads a game sound into a specific sound slot. The sound can then be played with PlayMissionAudio.

Syntax

bool preloadMissionAudio ( player thePlayer, int sound, int slot )   

Required Arguments

  • thePlayer: the player you want to play the sound for.
  • sound: the sound id to play (interpreted as unsigned short). Valid values are those from the data/AudioEvents.txt file.
  • slot: sound slot in which you preloaded the sound

Returns

Returns true if the sound was successfully preloaded, false otherwise.

Example

See PlayMissionAudio.

See Also