Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Modified



Introduced in

Version:1.00

Description

Description:Plays music defined in CfgMusic (see CfgMusic in the VBS3 Developer Reference).

Syntax

Syntax:playMusic name
Parameters:
  • name : String - Music to play.
Return Value:Nothing

Alternative Syntax

Syntax:playMusic [name, position]
Parameters
:[name,position]
:
Array
:
  • - Class name of the sound to play. If empty (""), the currently played music
will stop
  • stops.
  • position: Number - Time position in the sound (in seconds).
Return Value:Nothing

Examples

Examples:
playMusic "musicname"
playMusic ["Track13", 30]

Additional Information

See also: fadeMusic, playSound, say, createSoundSource
Multiplayer: 
Problems: 

Notes