Difference between revisions of "PlaySound"

Jump to navigation Jump to search
413 bytes added ,  09:25, 13 March 2012
add previously undocumented parameter, fix example
imported>Yukichigai
imported>HunterZ
(add previously undocumented parameter, fix example)
 
Line 3: Line 3:
   |origin = GECK1
   |origin = GECK1
   |summary = [[PlaySound]] plays the specified sound, non-locational.
   |summary = [[PlaySound]] plays the specified sound, non-locational.
If the ''SystemSound'' flag is set to a non-zero value, the sound will play even in [[MenuMode]]. Otherwise, the sound may be queued and not played until returning to [[GameMode]].
   |referenceType =
   |referenceType =
   |arguments = {{FunctionArgument
   |arguments = {{FunctionArgument
     |Name = SoundName
     |Name = SoundName
     |Type = EditorID
     |Type = EditorID
  }}{{FunctionArgument
    |Name = SystemSound
    |Type = int
    |Optional = optional
   }}
   }}
   |Example = PlaySound AMBCeilingCrumble
   |example = PlaySound AMBCeilingCrumble
The game will play the AMBCeilingCrumble sound
The game will play the AMBCeilingCrumble sound; if in MenuMode, it may not play until return to GameMode.
PlaySound UIItemTakeAll 1
The UIItemTakeAll sound will be played even in MenuMode.
}}
}}


Anonymous user

Navigation menu